Skip to content

Commit

Permalink
Attest を追加 (#136)
Browse files Browse the repository at this point in the history
Co-authored-by: Syuugo <[email protected]>
  • Loading branch information
s1204-inspect and s1204IT authored Jun 7, 2024
1 parent 3526308 commit 993a98e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
steps:

- name: Checkout
Expand All @@ -47,14 +49,14 @@ jobs:
- name: Get previous version name
uses: oprypin/[email protected]
if: github.event.inputs.release == 'true'
if: github.event.inputs.release
id: previous
with:
repository: ${{ github.repository }}
releases-only: true

- name: Release check
if: github.event.inputs.release == 'true'
if: github.event.inputs.release
run: |
if [ "${{ secrets.STORE_FILE }}" == "" ]; then
echo -e "\nERROR!\nTo release, you need to set up a signing key! \n"
Expand Down Expand Up @@ -85,6 +87,12 @@ jobs:
./gradlew assembleDebug --no-daemon --stacktrace
fi
- name: Attest
uses: actions/attest-build-provenance@v1
if: github.event.inputs.release != 'true'
with:
subject-path: app/build/outputs/apk/debug/app-debug.apk

- name: Upload APK
uses: actions/upload-artifact@v4
if: github.event.inputs.release != 'true'
Expand All @@ -94,7 +102,7 @@ jobs:

- name: Release
uses: softprops/action-gh-release@v2
if: github.event.inputs.release == 'true'
if: github.event.inputs.release
with:
tag_name: ${{ env.version }}
draft: false
Expand Down

0 comments on commit 993a98e

Please sign in to comment.