diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index dcc9389..241983d 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,3 +1,10 @@ +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + packages: write + pages: write + id-token: write + on: workflow_dispatch: push: @@ -34,4 +41,33 @@ jobs: werf build --save-build-report=true --build-report-path=images-report.json docker pull $(cat images-report.json | jq -r .Images.service.DockerImageName) docker tag $(cat images-report.json | jq -r .Images.service.DockerImageName) ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA - docker push ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA \ No newline at end of file + docker push ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA + docs: + runs-on: ubuntu-latest + name: Docs + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Set Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Install deps and build docs + run: | + cd docs + npm install + npm run release-build + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: './public/' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2