From 4abfd06a7a73615cd92c39a91b00970f9eb9dbe6 Mon Sep 17 00:00:00 2001 From: John Guibas Date: Thu, 25 Jan 2024 10:41:30 -0800 Subject: [PATCH] private repo access --- .github/workflows/ci.yml | 7 ++---- .github/workflows/release.yml | 40 ----------------------------------- 2 files changed, 2 insertions(+), 45 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52c4e8f2c6f9..67ee786320f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,8 @@ name: CI on: push: - branches: [ risc0 ] - pull_request: - branches: [ risc0 ] - workflow_call: - workflow_dispatch: + tags: + - '*' jobs: build-linux-x86: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index d9a4ec239315..000000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Release -on: - push: - tags: - - '*' - -jobs: - build: - uses: ./.github/workflows/ci.yml - - release: - needs: build - runs-on: ubuntu-latest - 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/* || \ - ./gh release upload --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./assets/*