Skip to content

Commit

Permalink
private repo access
Browse files Browse the repository at this point in the history
  • Loading branch information
jtguibas committed Jan 25, 2024
1 parent 4abfd06 commit f950d92
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,33 @@ jobs:
path: |
rust/build/x86_64-unknown-linux-gnu/stage2
!rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/src
!rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/rustc-src
!rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/rustc-src
release:
needs: [build-linux-x86]
runs-on: buildjet-32vcpu-ubuntu-2204
permissions:
contents: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Compress artifacts
shell: bash
run: |
ls -lha ./artifacts
mkdir assets
for DIR in $(ls ./artifacts); do
tar czf "assets/$DIR.tar.gz" -C "artifacts/$DIR" .
done
ls -lha ./assets
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Installing gh CLI..."
curl -L https://github.com/cli/cli/releases/download/v2.17.0/gh_2.17.0_linux_amd64.tar.gz | tar xvz --strip-components=2 --exclude=man
chmod +x ./gh
./gh release create --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./assets/*

0 comments on commit f950d92

Please sign in to comment.