Skip to content

Commit

Permalink
code: new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-moskal committed Sep 14, 2024
1 parent e95f0fd commit 2c99a4d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 56 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
name: 🛠️ build
on:
push:
branches:
- main
branches: ["main"]
pull_request:
branches:
- main
branches: ["main"]

jobs:
build:
Expand All @@ -19,7 +17,7 @@ jobs:
- name: 🔧 setup node
uses: actions/setup-node@v3
with:
node-version: '21'
node-version: '22'

- name: 📦 install dependencies
run: npm ci
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/publish.yaml

This file was deleted.

32 changes: 17 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: ["release"]

workflow_dispatch:

permissions:
contents: read
pages: write
Expand All @@ -22,23 +20,27 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:

- name: 🔔 checkout
uses: actions/checkout@v4

- name: 🔧 setup node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '21'
node-version: '22'

- name: 📦 install dependencies
run: npm ci
- name: set-up s5cmd
uses: peak/action-setup-s5cmd@main
with:
version: v2.2.2

- name: 🔨 build
run: npm run build
- name: download assets
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_ENDPOINT_URL: "https://sfo2.digitaloceanspaces.com"
run: |
s5cmd cp "s3://benev-storage/regis/assets/x/*" x/assets/
- name: 🧪 test
run: npm test
- run: npm ci
- run: npm run build
- run: npm test

- name: 🚚 tracking ignored stuff
run: |
Expand Down

0 comments on commit 2c99a4d

Please sign in to comment.