This commit is contained in:
@@ -0,0 +1,45 @@
|
|||||||
|
name: Deploy static content to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main", "master" ]
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BASE: /fs_namensschilder/
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
- run: bun install --include=dev
|
||||||
|
- name: Build project
|
||||||
|
run: bun run build-only
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: './dist'
|
||||||
|
- name: Minio Deploy
|
||||||
|
uses: passidel/minio-deploy-action@v1
|
||||||
|
with:
|
||||||
|
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||||
|
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||||
|
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
||||||
|
bucket: 'swarm-static-websites'
|
||||||
|
source_dir: './dist'
|
||||||
|
target_dir: '/pascal.syma.dev/fs_namensschilder/'
|
||||||
Reference in New Issue
Block a user