Skip to content

Commit

Permalink
Release with date
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jun 11, 2024
1 parent 450c0b4 commit bfe826c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
# Note the # and () symbols are not supported in GitHub Release filenames, even manually
- name: Export APK_NAME for later use
run: echo "APK_NAME=Lawnchair.Debug.${{ github.ref_name }}.Nightly-CI_${{ github.run_number }}-$(echo ${{ github.sha }} | cut -c1-7).apk" >> $GITHUB_ENV
- name: Generate release name with current date
run: echo "RELEASE_NAME=14.0.0-$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Delete release if exist then create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag
gh release create "nightly" "./Release APK/apk/lawnWithQuickstep/release/"*.apk "./Release APK/mapping/lawnWithQuickstepRelease/"mapping.txt -t "Lawnchair Nightly" --generate-notes
gh release view ${{ env.RELEASE_NAME }} && gh release delete "nightly" -y --cleanup-tag
gh release create ${{ env.RELEASE_NAME }} "./Release APK/apk/lawnWithQuickstep/release/"*.apk "./Release APK/mapping/lawnWithQuickstepRelease/"mapping.txt -t "Lawnchair Nightly" --generate-notes

0 comments on commit bfe826c

Please sign in to comment.