diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 00000000..b5bde1ed --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,23 @@ +name: Publish Docs +on: + workflow_dispatch: + inputs: + tag: + description: Docker Image Tag + required: true + default: latest + +jobs: + publish: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/setup + - uses: docker/login-action@v3 + with: + registry: https://${{ secrets.DOCKER_REGISTRY_HOSTNAME }} + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + - run: pnpm docs:build + - run: docker build docs/.vitepress -t ${{ secrets.DOCKER_REGISTRY_HOSTNAME }}/wxt/docs:${{ github.event.inputs.tag }} + - run: docker push -t ${{ secrets.DOCKER_REGISTRY_HOSTNAME }}/wxt/docs:${{ github.event.inputs.tag }} diff --git a/docs/.vitepress/Dockerfile b/docs/.vitepress/Dockerfile new file mode 100644 index 00000000..7e8777ab --- /dev/null +++ b/docs/.vitepress/Dockerfile @@ -0,0 +1,2 @@ +FROM lipanski/docker-static-website:latest +COPY dist .