Skip to content

Commit

Permalink
🐛 fix: try to fix release on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
drackp2m committed Nov 3, 2024
1 parent a3a6740 commit 4dbbe44
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ on:
pull_request:
branches:
- main
types: [closed]

permissions:
contents: write
contents: read
pages: write
id-token: write

concurrency:
group: 'pages'
cancel-in-progress: false
cancel-in-progress: true

jobs:
tests:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy Play Set Online to Github Pages

on:
push:
branches:
- main

permissions:
contents: write
id-token: write

concurrency:
group: 'release'
cancel-in-progress: true

jobs:
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.9'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Import GPG key
env:
GPG_PRIVATE_KEY: ${{ secrets.SEMANTIC_RELEASE_GPG_PRIVATE_KEY }}
run: |
echo "$GPG_PRIVATE_KEY" > private.key
gpg --batch --import private.key
git config --global user.name "drackp2m-semantic-release-bot"
git config --global user.email "[email protected]"
git config --global commit.gpgSign true
git config --global user.signingkey 89AE9225AE159D89
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
gpgconf --kill gpg-agent
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node --run release

0 comments on commit 4dbbe44

Please sign in to comment.