Skip to content

Commit

Permalink
chore(frame-events): updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SirPhemmiey committed Jul 9, 2024
1 parent ebc3c17 commit a936983
Showing 1 changed file with 43 additions and 20 deletions.
63 changes: 43 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@ jobs:
with:
env: ${{ env.GITHUB_TOKEN }}

- name: Setup git permissions
run: |
git config --global user.name "wetransferplatform"
git config --global user.email "[email protected]"
git config --global user.signingkey "$WETRANSFERPLATFORM_GPG_KEYID"
git config --global commit.gpgsign true
shell: bash
env:
WETRANSFERPLATFORM_GPG_KEYID: ${{ secrets.WETRANSFERPLATFORM_GPG_KEYID }}
# - name: Setup git permissions
# run: |
# git config --global user.name "wetransferplatform"
# git config --global user.email "[email protected]"
# git config --global user.signingkey "$WETRANSFERPLATFORM_GPG_KEYID"
# git config --global commit.gpgsign true
# shell: bash
# env:
# WETRANSFERPLATFORM_GPG_KEYID: ${{ secrets.WETRANSFERPLATFORM_GPG_KEYID }}

- name: Import GPG key
run: |
echo "$WETRANSFERPLATFORM_GPG_KEY" | gpg --batch --import
env:
WETRANSFERPLATFORM_GPG_KEY: ${{ secrets.WETRANSFERPLATFORM_GPG_KEY }}
shell: bash
# - name: Import GPG key
# run: |
# echo "$WETRANSFERPLATFORM_GPG_KEY" | gpg --batch --import
# env:
# WETRANSFERPLATFORM_GPG_KEY: ${{ secrets.WETRANSFERPLATFORM_GPG_KEY }}
# shell: bash

- name: Trust imported GPG key
run: |
KEY_ID=$(gpg --list-keys --with-colons | grep '^pub' | cut -d':' -f5)
echo -e "trust\n5\ny\n" | gpg --command-fd 0 --batch --edit-key $KEY_ID
shell: bash
# - name: Trust imported GPG key
# run: |
# KEY_ID=$(gpg --list-keys --with-colons | grep '^pub' | cut -d':' -f5)
# echo -e "trust\n5\ny\n" | gpg --command-fd 0 --batch --edit-key $KEY_ID
# shell: bash

# - name: Push changes and tags
# run: |
Expand Down Expand Up @@ -112,6 +112,29 @@ jobs:
- name: Build package
run: yarn build

- name: Setup git permissions
run: |
git config --global user.name "wetransferplatform"
git config --global user.email "[email protected]"
git config --global user.signingkey "$WETRANSFERPLATFORM_GPG_KEYID"
git config --global commit.gpgsign true
shell: bash
env:
WETRANSFERPLATFORM_GPG_KEYID: ${{ secrets.WETRANSFERPLATFORM_GPG_KEYID }}

- name: Import GPG key
run: |
echo "$WETRANSFERPLATFORM_GPG_KEY" | gpg --batch --import
env:
WETRANSFERPLATFORM_GPG_KEY: ${{ secrets.WETRANSFERPLATFORM_GPG_KEY }}
shell: bash

- name: Trust imported GPG key
run: |
KEY_ID=$(gpg --list-keys --with-colons | grep '^pub' | cut -d':' -f5)
echo -e "trust\n5\ny\n" | gpg --command-fd 0 --batch --edit-key $KEY_ID
shell: bash

- name: Bump version
id: version
run: |
Expand Down

0 comments on commit a936983

Please sign in to comment.