From 60159fed961c1937af0f98477de839d8713d0f01 Mon Sep 17 00:00:00 2001 From: Olwe Samuel Date: Mon, 28 Aug 2023 16:07:51 +0300 Subject: [PATCH] Update publish-on-release.yml ## Done - Added a publish-website job to update the production website whenever there's a successful release. --- .github/workflows/publish-on-release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index 884c38b39..c09f03d28 100644 --- a/.github/workflows/publish-on-release.yml +++ b/.github/workflows/publish-on-release.yml @@ -64,3 +64,13 @@ jobs: run: upload-assets --url-path vanilla-framework-version-$(cat css/VANILLA_VERSION).min.css css/build.css env: UPLOAD_ASSETS_API_TOKEN: ${{secrets.UPLOAD_ASSETS_API_TOKEN}} + + publish-website: + name: Publish to the production website + needs: [publish-assets] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Push to release branch + run: | + git push origin/release