Skip to content

Commit

Permalink
Also pack source for release.
Browse files Browse the repository at this point in the history
The automatically created URLs from archives are not stable
  https://github.com/orgs/community/discussions/46034
so also craete a release artifact that we packed ourselves and
will stay as-is.
  • Loading branch information
hzeller committed Jan 19, 2025
1 parent b0bff04 commit 8eaeab6
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/verible-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,34 @@ jobs:
rm c:/users/runneradmin/_bazel_runneradmin/*/java.log
PackReleaseSource:
name: 📦 Pack Sources
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Pack Sources
run: |
VERSION=$(git describe --match=v*)
OUT_SRC=verible-v${VERSION}
mkdir ../${OUT_SRC}
cp -r . ../${OUT_SRC}
tar --exclude=.git -cvzf ${OUT_SRC}.tar.gz ../${OUT_SRC}
- name: 📤 Upload Source tar
uses: actions/upload-artifact@v4
with:
path: verible-*.tar.gz

Release:
name: 📦 Release
needs: [ Check, MacOsBuild, WindowsBuild, PrepareVSPlugin ]
needs: [ Check, PackReleaseSource, MacOsBuild, WindowsBuild, PrepareVSPlugin ]
runs-on: ubuntu-20.04
permissions:
contents: write
Expand Down

0 comments on commit 8eaeab6

Please sign in to comment.