Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs in workflow #3

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
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