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 + +