Skip to content

Commit

Permalink
requested change: move to release job
Browse files Browse the repository at this point in the history
  • Loading branch information
lectrical committed Dec 27, 2024
1 parent 9ceb333 commit a894f1e
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ on:
- "jq-*"
pull_request:

permissions:
id-token: write
contents: read
attestations: write

jobs:
linux:
strategy:
Expand Down Expand Up @@ -116,11 +111,6 @@ jobs:
path: |
test-suite.log
tests/*.log
- name: attest-build-provenance
if: startsWith(github.ref, 'refs/tags/')
uses: actions/attest-build-provenance@v2
with:
subject-path: jq-${{ env.SUFFIX }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -188,11 +178,6 @@ jobs:
path: |
test-suite.log
tests/*.log
- name: attest-build-provenance
if: startsWith(github.ref, 'refs/tags/')
uses: actions/attest-build-provenance@v2
with:
subject-path: jq-${{ env.SUFFIX }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -267,11 +252,6 @@ jobs:
path: |
test-suite.log
tests/*.log
- name: attest-build-provenance
if: startsWith(github.ref, 'refs/tags/')
uses: actions/attest-build-provenance@v2
with:
subject-path: jq-${{ env.SUFFIX }}.exe
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -301,13 +281,6 @@ jobs:
make distcheck
make dist dist-zip
git diff --exit-code
- name: attest-build-provenance
if: startsWith(github.ref, 'refs/tags/')
uses: actions/attest-build-provenance@v2
with:
subject-path: |
jq-*.tar.gz
jq-*.zip
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -395,6 +368,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
pull-requests: write
environment: release
needs: [linux, macos, windows, dist, docker]
Expand All @@ -417,6 +392,10 @@ jobs:
sha256sum jq-* > sha256sum.txt
gh release create "$TAG_NAME" --draft --title "jq ${TAG_NAME#jq-}" --generate-notes
gh release upload "$TAG_NAME" --clobber jq-* sha256sum.txt
- name: attest-build-provenance
uses: actions/attest-build-provenance@v2
with:
subject-path: jq-*
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
Expand Down

0 comments on commit a894f1e

Please sign in to comment.