Skip to content

Commit

Permalink
fighting with the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
FoseFx committed Nov 2, 2023
1 parent 995da42 commit 4634c22
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@ jobs:
retention-days: 1
release:
needs: build
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get CHANGELOG
- name: Get CHANGELOGA
id: changelog
run: |
echo "RELEASE_BODY<<EOF" > /tmp/bttv &&
head -n25 CHANGELOG.md >> /tmp/bttv &&
echo "EOF" >> /tmp/bttv &&
cat /tmp/bttv >> $GITHUB_ENV
cat /tmp/bttv >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v2
with:
name: bttv-apk
Expand All @@ -83,10 +84,11 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ env.RELEASE_BODY }}
body: ${{ steps.changelog.outputs.RELEASE_BODY }}
draft: true
prerelease: false
- run: echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- id: version_tag
run: echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: upload Release Apk
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand All @@ -95,5 +97,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bttv.apk
asset_name: bttv-${{ env.version_tag }}.apk
asset_name: bttv-${{ steps.version_tag.outputs.version_tag }}.apk
asset_content_type: application/vnd.android.package-archive

0 comments on commit 4634c22

Please sign in to comment.