action update website

This commit is contained in:
IrosTheBeggar 2021-08-11 23:40:25 -04:00
parent e91906067c
commit a2c4e9d1bd

28
.github/workflows/update-website.yaml vendored Normal file
View 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