Skip to content

Commit

Permalink
Added action to publish a fresh build as a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Dec 17, 2023
1 parent 9455817 commit bdd4e9b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/fresh-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
workflow_dispatch:

name: Fresh build

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Restore the node modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: modules-${{ hashFiles('**/package.json') }}

- name: Install packages
run: npm i --include-dev

- name: Perform a fresh build
run: |
mkdir output
node scripts/fresh.js -o output -x whee
- name: Publishing files
uses: softprops/action-gh-release@v1
with:
name: Latest build
tag_name: latest
files: outputs/**

0 comments on commit bdd4e9b

Please sign in to comment.