Skip to content

Update hathperks.ts

Update hathperks.ts #1

Workflow file for this run

name: ci
on:
push:
branches-ignore: [release]
tags: ['*']
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
uses: NullVoxPopuli/action-setup-pnpm@v2
with:
node-version: 18
pnpm-version: 8
- name: Build
run: |
pnpm run build:firefox
pnpm run build:chrome
pnpm run build:monkey
- uses: actions/upload-artifact@v3
with:
name: releases
path: releases/
deploy:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/')
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: releases
path: releases/
- name: Publish to github release
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
artifacts: releases/*
body: |
[更新日志](https://github.com/EhTagTranslation/EhSyringe/blob/master/CHANGELOG.md)
prerelease: ${{ contains(github.event.ref, '-') }}
replacesArtifacts: true
- name: Commit release mirror
run: >
cd ./releases
&& git init
&& git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
&& git config user.name 'github-actions[bot]'
&& git add .
&& git commit -am 'Release for https://github.com/EhTagTranslation/EhSyringe/tree/${{ github.event.ref }}'
- name: Push to release branch
uses: ad-m/github-push-action@master
with:
branch: release
force: true
directory: releases/