Skip to content

Commit

Permalink
Merge pull request #26 from Ragzouken/action
Browse files Browse the repository at this point in the history
auto build to github pages / itch / neocities
  • Loading branch information
Ragzouken authored May 25, 2024
2 parents cb597a4 + 0b0fdcb commit d4c775e
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: publish

on: [push]
on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -13,16 +16,32 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: install pug-cli & build
- name: install node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm install pug-cli -g
- run: pug --pretty -o dist --basedir src -- src/index.pug
- name: Upload artifact
- name: install pug & build
run: |
npm install pug-cli -g
pug --pretty -o site/bipsi --basedir src -- src/index.pug
- name: upload github pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
path: ./site/bipsi
- name: deploy to neocities
uses: bcomnes/deploy-to-neocities@v2
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: ./site
- name: deploy to itch
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: web
ITCH_GAME: bipsi
ITCH_USER: candle
PACKAGE: ./site/bipsi

deploy:
environment:
Expand Down

0 comments on commit d4c775e

Please sign in to comment.