Nightly Release #649
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: 'Nightly Release' | |
on: | |
schedule: | |
- cron: '0 16 * * *' # run at UTC 16:00:00 (beijing time 00:00) | |
jobs: | |
check_date: | |
runs-on: ubuntu-latest | |
name: Check latest commit | |
outputs: | |
should_run: ${{ steps.should_run.outputs.should_run }} | |
steps: | |
- name: Copy dev branch Files | |
uses: actions/checkout@v3 | |
with: | |
ref: dev | |
- name: print latest_commit | |
run: git rev-list --after="24 hours" HEAD~0 | |
- name: print changes | |
continue-on-error: true | |
env: | |
CHANGES: ${{ toJSON(github.event.commits) }} | |
run: echo $CHANGES | |
- name: print branch name | |
continue-on-error: true | |
run: | | |
echo ${{ github.ref_name }} | |
echo ${{ github.ref }} | |
- name: preset should_run | |
run: echo "::set-output name=should_run::true" | |
- id: should_run | |
continue-on-error: true | |
name: check latest commit is less than a day | |
if: ${{ github.event_name == 'schedule' }} | |
run: test -z $(git rev-list --after="24 hours" HEAD~0) && echo "::set-output name=should_run::false" | |
nightly-release: | |
needs: check_date | |
if: ${{ needs.check_date.outputs.should_run != 'false' }} | |
runs-on: ubuntu-latest | |
name: Nightly Release | |
steps: | |
- name: Copy dev branch Files | |
uses: actions/checkout@v3 | |
with: | |
ref: dev | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- name: Install Modules | |
run: yarn | |
- name: Build Poker | |
env: | |
NODE_ENV: production | |
run: yarn build | |
- name: Create poker.zip | |
run: | | |
mv build poker | |
zip -r poker.zip ./poker | |
- name: Run latest-tag | |
uses: EndBug/latest-tag@latest | |
with: | |
ref: nightly | |
# force-branch: true | |
- name: update Nightly Release | |
uses: softprops/action-gh-release@v1 | |
# if: startsWith('nightly', 'refs/tags/') | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |
tag_name: nightly | |
name: Nightly | |
body: | | |
### ⏬ 安装方式 | |
并不是 crx 文件,而是 zip 文件,安装方式有点差异: | |
1. 先打开 Chrome,在地址栏输入 chrome://extensions 后进入扩展程序管理页面 | |
2. 启用页面右上角的「开发者模式」 | |
3. 然后解压 poker.zip ,将解压出来的文件夹拖拽到这个页面上,即可完成安装 | |
### ⚠️ 注意 | |
此为开发中的每日构建版本。开发中的版本虽然可以体验到最新开发的功能和特性, | |
**但程序可能会有严重的缺陷,以至于出现无法正常使用的情况**,请酌情考虑。 | |
建议使用稳定版作为日常使用,⬇️往下查看[稳定版](https://github.com/VecHK/poker-search/releases/latest)。 | |
files: | | |
LICENSE | |
poker.zip |