Skip to content

Commit

Permalink
Tagged releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jerinphilip committed Apr 19, 2022
1 parent 600cbc6 commit 393e5da
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/moz-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,45 @@ jobs:
title: "Latest Build"
files: |
/tmp/MozIntGemm.tar.gz
# Try to upload a release using https://github.com/marvinpinto/actions/issues/177#issuecomment-917605585 as a model
release-version:
name: Release Latest Build
runs-on: ubuntu-latest
needs: [arm]
if: startsWith(github.ref, 'refs/tags/v')
permissions:
id-token: "write"
contents: "write"
packages: "write"
pull-requests: "read"

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Strip unnecessary sources
run: |
bash tools/strip.sh
# Additionally remove .github only and .git folders.
- name: "Strip other files: .git, .github"
run: |
rm -rv .github
find . -iname ".git" | xargs -I% rm -rfv %
find . -iname ".gitmodules" | xargs -I% rm -rfv %
- name: Create source-tarball
run: |
(cd ../ && tar cvzf /tmp/MozIntGemm.tar.gz MozIntGemm)
- name: Update GitHub prerelease
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ github.ref_name }}
prerelease: true
title: "${{ github.ref_name }}"
files: |
/tmp/MozIntGemm.tar.gz

0 comments on commit 393e5da

Please sign in to comment.