1 workflow to rule them all
This commit is contained in:
parent
2c86dca627
commit
8830674930
@ -1,12 +0,0 @@
|
|||||||
name: Linting
|
|
||||||
run-name: ${{ gitea.actor }} is checking the LUA code 🚀
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Luacheck:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Luacheck linter
|
|
||||||
uses: lunarmodules/luacheck@v1
|
|
@ -1,12 +1,19 @@
|
|||||||
name: Build & Release
|
name: Workflow
|
||||||
run-name: ${{ gitea.actor }} is creating a new release 🚀
|
run-name: ${{ gitea.actor }} is lintingn and on tags creating a new release 🚀
|
||||||
on: [push]
|
on: [push]
|
||||||
#push:
|
|
||||||
#tags:
|
|
||||||
# - '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
|
||||||
|
Linting:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Run Luacheck linter
|
||||||
|
uses: lunarmodules/luacheck@v1
|
||||||
|
|
||||||
|
Deployment:
|
||||||
|
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
@ -35,21 +42,13 @@ jobs:
|
|||||||
zip -r "AchievementInfo-$GITHUB_REF_NAME.zip" ./AchievementInfo
|
zip -r "AchievementInfo-$GITHUB_REF_NAME.zip" ./AchievementInfo
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEATOKEN }}
|
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.GITEATOKEN }}
|
||||||
|
name: AchievementInfo $GITHUB_REF_NAME
|
||||||
tag_name: $GITHUB_REF_NAME
|
tag_name: $GITHUB_REF_NAME
|
||||||
release_name: AchievementInfo $GITHUB_REF_NAME
|
|
||||||
body_path: AchievementInfo/CHANGELOG.md
|
body_path: AchievementInfo/CHANGELOG.md
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload release asset
|
files: |-
|
||||||
uses: actions/upload-release-asset@v1
|
*.zip
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEATOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./AchievementInfo-$GITHUB_REF_NAME.zip
|
|
||||||
asset_name: AchievementInfo-$GITHUB_REF_NAME.zip
|
|
||||||
asset_content_type: application/zip
|
|
Loading…
Reference in New Issue
Block a user