mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
action update website
This commit is contained in:
parent
e91906067c
commit
a2c4e9d1bd
28
.github/workflows/update-website.yaml
vendored
Normal file
28
.github/workflows/update-website.yaml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
name: Update Website
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
update-website:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout mStream Website
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
repository: IrosTheBeggar/mStream
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
- name: Get Version Number
|
||||
- id: get_version
|
||||
uses: battila7/get-version-action@v2
|
||||
- run: |
|
||||
echo ${{ steps.get_version.outputs.version }}
|
||||
sed -i 's/[1-9]\+[0-9]*\.[0-9]\+\.[0-9]\+/${{ steps.get_version.outputs.version-without-v }}/g' templates/express.html
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git commit -m "action: update server"
|
||||
git push
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user