From a2c4e9d1bd79fa217143edffbdbf92c1cb8ae309 Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Wed, 11 Aug 2021 23:40:25 -0400 Subject: [PATCH] action update website --- .github/workflows/update-website.yaml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-website.yaml diff --git a/.github/workflows/update-website.yaml b/.github/workflows/update-website.yaml new file mode 100644 index 0000000..0220778 --- /dev/null +++ b/.github/workflows/update-website.yaml @@ -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 + +