Skip to content

3.15.0

3.15.0 #60

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches:
- "!*"
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./dist"
- name: Release
if: github.event_name != 'workflow_dispatch'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ github.token }}
prerelease: false
files: |
dist/script.user.js
- name: Prepare dist branch files
run: |
cp .gitignore ./dist
rm ./dist/*.html
- name: Trigger Greasy Fork synchronization
uses: casperdcl/push-dir@v1
with:
message: ${{ github.ref_name }}
branch: dist
dir: dist
history: true
nojekyll: true
deploy:
needs: build
runs-on: ubuntu-latest
concurrency:
group: "pages"
cancel-in-progress: true
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1