Skip to content

Commit

Permalink
💻 ci: improve deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drackp2m committed Nov 13, 2024
1 parent beddebe commit c8de193
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 62 deletions.
45 changes: 41 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [closed]

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

Expand All @@ -25,7 +25,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '23.1'
node-version: '22.11'
cache: 'npm'

- name: Install dependencies
Expand All @@ -38,9 +38,46 @@ jobs:
MIKRO_ORM_CLI_USE_TS_NODE: true
run: node --run test

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11'
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 commit.gpgSign true
git config --global user.signingkey 8061777E7D988EE9
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 }}
GIT_AUTHOR_NAME: 'romantic-release-bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: 'romantic-release-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
run: node --run release

build:
runs-on: ubuntu-latest
needs: release
steps:
- name: Setup Pages
id: pages
Expand All @@ -52,7 +89,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '23.1'
node-version: '22.11'
cache: 'npm'

- name: Install dependencies
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/release.yml

This file was deleted.

19 changes: 18 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"svg.preview.background": "editor"
"svg.preview.background": "editor",
"workbench.colorCustomizations": {
"activityBar.background": "#00b058",
"activityBar.foreground": "#ffffff",
"activityBar.activeBorder": "#FFFF00",
"activityBarBadge.background": "#FFFF00",
"activityBarBadge.foreground": "#008844",
"titleBar.activeBackground": "#008040",
"titleBar.activeForeground": "#FFFFFF",
"titleBar.inactiveBackground": "#00b058",
"titleBar.inactiveForeground": "#ffffff70",
"statusBar.background": "#008040",
"statusBar.foreground": "#FFFFFF",
"statusBar.noFolderBackground": "#68217A",
"statusBar.debuggingBackground": "#CC0000",
"statusBar.noFolderForeground": "#FFFFFF",
"statusBar.debuggingForeground": "#FFFFFF"
}
}
Loading

0 comments on commit c8de193

Please sign in to comment.