Skip to content

Use remote files in docker image #28

Use remote files in docker image

Use remote files in docker image #28

Workflow file for this run

name: Create dist
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
concurrency:
group: dist
cancel-in-progress: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install dependencies and build
run: |
npm install
VITE_DYNAMIC_BASE_URL=true yarn build
cp dist/index.html dist/404.html
- name: Push to dist
uses: s0/git-publish-subdir-action@v2.6.0
env:
REPO: self
BRANCH: dist
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}