43 lines
989 B
YAML
43 lines
989 B
YAML
name: Deploy static content to S3
|
|
|
|
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
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3.7.0
|
|
with:
|
|
node-version: '13'
|
|
package-manager-cache: false
|
|
- run: npm install --include=dev
|
|
- name: Build project
|
|
run: npm run build
|
|
- 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/MI2Mario/'
|