Skip to content

Commit

Permalink
Import gpg signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 22, 2024
1 parent 9e2c966 commit b6f7709
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

jobs:
release-snapshot:
permissions: write-all
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

Expand Down Expand Up @@ -45,9 +43,12 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install Deb build scripts
run: sudo apt-get install devscripts build-essential lintian dput dh-make
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}

- name: Release snapshot
run: |
Expand All @@ -59,7 +60,6 @@ jobs:
run: bin/release_goreport

release-tag:
permissions: write-all
runs-on: ubuntu-latest
if: github.ref_type == 'tag'

Expand Down Expand Up @@ -90,9 +90,12 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Install Deb build scripts
run: sudo apt-get install devscripts build-essential lintian dput dh-make
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}

- name: Release tag
run: |
Expand Down
1 change: 1 addition & 0 deletions foo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello

0 comments on commit b6f7709

Please sign in to comment.