Skip to content

Commit

Permalink
add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjixWasTaken committed Aug 11, 2023
1 parent 6e94332 commit 864237b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build dist
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@main
with:
node-version: 20.x

- name: npm install and build
run: |
npm install
npm run build
- name: prepare dist folder
run: |
mkdir dist
mv outfile.cjs dist
mv template dist
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 864237b

Please sign in to comment.