Skip to content

Commit

Permalink
Remove attestation part for release
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Sep 14, 2024
1 parent 3ec367c commit cd5cb45
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/contract-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ concurrency:

jobs:
release-contract:
name: Compile Stellar smart contract for production
name: Compile Stellar smart contract for production and create release
permissions:
contents: write # in order to create releases
environment:
name: publish-contract
uses: stellar-expert/soroban-build-workflow/.github/workflows/release.yml@42c50612b2839ad2e9aa50b874552d6f76bac623
with:
release_name: ${{ github.event.inputs.release_name }}
release_description: 'Tansu contract release'
secrets:
release_token: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: stellar-expert/soroban-build-workflow/.github/workflows/release.yml@42c50612b2839ad2e9aa50b874552d6f76bac623
with:
release_name: ${{ github.event.inputs.release_name }}
release_description: 'Tansu contract release'
secrets:
release_token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate artifact attestation for build
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c
with:
subject-path: "target/wasm32-unknown-unknown/release/versioning.wasm"

- name: Verify artifact attestation
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
for artifact in target/wasm32-unknown-unknown/release/*; do
echo "# ${artifact}"
gh attestation verify "${artifact}" --repo ${{ github.repository }}
done
# attestation-contract:
# needs: release-contract
# runs-on: ubuntu-latest
# steps:
# - name: Generate artifact attestation for build
# uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c
# with:
# subject-path: "target/wasm32-unknown-unknown/release/versioning.wasm"
#
# - name: Verify artifact attestation
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# shell: bash
# run: |
# for artifact in target/wasm32-unknown-unknown/release/*; do
# echo "# ${artifact}"
# gh attestation verify "${artifact}" --repo ${{ github.repository }}
# done

0 comments on commit cd5cb45

Please sign in to comment.