-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,57 +3,58 @@ name: release | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup eli | ||
uses: alis-is/setup-eli@v1 | ||
with: | ||
prerelase: true | ||
|
||
- name: build plugins | ||
run: eli tools/build.lua | ||
|
||
- name: build plugins | ||
run: | | ||
eli tools/build.lua | ||
- name: create release id | ||
id: prepare_release | ||
run: | | ||
export RELEASE_ID=$(date +'%y%m%d%H%M') | ||
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_OUTPUT | ||
- name: check release required | ||
id: check_release_required | ||
env: | ||
RELEASE_ID: ${{steps.prepare_release.outputs.RELEASE_ID}} | ||
run: | | ||
export PAYLOAD=$(eli tools/check-release-required.lua) | ||
echo "PAYLOAD=$PAYLOAD" >> $GITHUB_OUTPUT | ||
- name: Upload files to a GitHub release | ||
uses: svenstaro/[email protected] | ||
if: ${{ steps.check_release_required.outputs.PAYLOAD != '' }} | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{steps.prepare_release.outputs.RELEASE_ID}} | ||
file_glob: true | ||
file: build/*.zip | ||
|
||
- name: Air Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: ${{ steps.check_release_required.outputs.PAYLOAD != '' }} | ||
with: | ||
token: ${{ secrets.AIR_AT }} | ||
repository: alis-is/air | ||
event-type: app-release | ||
client-payload: '${{ steps.check_release_required.outputs.PAYLOAD }}' | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: setup eli | ||
uses: alis-is/setup-eli@v1 | ||
with: | ||
prerelase: true | ||
|
||
- name: build plugins | ||
run: eli tools/build.lua | ||
|
||
- name: build plugins | ||
run: | | ||
eli tools/build.lua | ||
- name: create release id | ||
id: prepare_release | ||
run: | | ||
export RELEASE_ID=$(date +'%y%m%d%H%M') | ||
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_OUTPUT | ||
- name: check release required | ||
id: check_release_required | ||
env: | ||
RELEASE_ID: ${{steps.prepare_release.outputs.RELEASE_ID}} | ||
GITHUB_REPOSITORY: ${{github.repository}} | ||
run: | | ||
export PAYLOAD=$(eli tools/check-release-required.lua) | ||
echo "PAYLOAD=$PAYLOAD" >> $GITHUB_OUTPUT | ||
- name: Upload files to a GitHub release | ||
uses: svenstaro/[email protected] | ||
if: ${{ steps.check_release_required.outputs.PAYLOAD != '' }} | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{steps.prepare_release.outputs.RELEASE_ID}} | ||
file_glob: true | ||
file: build/*.zip | ||
|
||
- name: Air Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: ${{ steps.check_release_required.outputs.PAYLOAD != '' }} | ||
with: | ||
token: ${{ secrets.AIR_AT }} | ||
repository: alis-is/air | ||
event-type: app-release | ||
client-payload: '${{ steps.check_release_required.outputs.PAYLOAD }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters