-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh action to publish the provider snap (#241)
* gh action to publish the provider snap * rename checkbox provider from checkbox-tdx-classic to checkbox-tdx
- Loading branch information
1 parent
82cd552
commit 198137e
Showing
7 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,21 @@ on: | |
|
||
jobs: | ||
|
||
check-secret: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
snap-key: ${{ steps.snap-key.outputs.defined }} | ||
steps: | ||
- id: snap-key | ||
name: Set defined=true if SNAPCRAFT7_CREDS is defined | ||
if: "${{ env.SNAPSTORE_KEY != '' }}" | ||
run: echo "defined=true" >> $GITHUB_OUTPUT | ||
env: | ||
SNAPSTORE_KEY: ${{ secrets.SNAPCRAFT7_CREDS }} | ||
|
||
build: | ||
runs-on: ubuntu-22.04 | ||
needs: [check-secret] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
|
@@ -34,3 +47,12 @@ jobs: | |
run: | | ||
sudo snap install checkbox22 | ||
sudo snap install --dangerous --classic ${{ steps.build.outputs.snap }} | ||
- if: needs.check-secret.outputs.snap-key == 'true' && (github.ref_name == 'noble-24.04') | ||
name: Publish snap to edge channel | ||
uses: snapcore/[email protected] | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} | ||
with: | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: edge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters