This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48bc32d
commit 7250af1
Showing
1 changed file
with
60 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Publish prebuild | ||
|
||
on: | ||
push: | ||
branches: | ||
- stable | ||
paths: | ||
- packages/** | ||
- locales/** | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to GHCR | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
python-version: [3.11.x] | ||
if: github.repository == 'transfem-org/Sharkey' | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/[email protected] | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache APT Packages | ||
uses: awalsh128/[email protected] | ||
with: | ||
packages: "build-essential uuid-dev libx11-dev libxkbfile-dev execstack libgconf-2-4 libsecret-1-dev" | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: v1-npm-deps- | ||
|
||
- name: Build | ||
run: | | ||
corepack enable pnpm@latest | ||
pnpm install | ||
npm install -g pkg | ||
pnpm run build | ||
cd packages/backend | ||
pkg --public ./built/boot/entry.js |