Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Merge pull request #583 from langningchen/langningchen/issue432 #122

Merge pull request #583 from langningchen/langningchen/issue432

Merge pull request #583 from langningchen/langningchen/issue432 #122

Workflow file for this run

name: Prerelease
on:
push:
branches:
- dev
paths:
- XMOJ.user.js
jobs:
Prerelease:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get version
id: get_version
run: node ./Update/GetVersion.js
- id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
generate_release_notes: true
draft: false
prerelease: true
files: XMOJ.user.js
target_commitish: ${{ github.sha }}
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: .
- uses: actions/deploy-pages@v2