Update hentaiathome.ts #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches-ignore: [release] | |
tags: ['*'] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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.13.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/ |