Skip to content

Package

Package #21

Workflow file for this run

name: Package
on:
create:
tags:
- v*.*.*
jobs:
bake:
runs-on: larssonoliverdotcom-runner-set
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set TAG environment variable
run: echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Setup buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/bake-action@v4
with:
push: true
pages:
runs-on: larssonoliverdotcom-runner-set
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Dependency Install
run: npm ci
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist