Skip to content

fix action

fix action #37

Workflow file for this run

on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create s3 config and credentials file
run: |
mkdir ~/.aws/
touch ~/.aws/config
echo "[default]" > ~/.aws/config
echo "endpoint_url = https://fsn1.your-objectstorage.com" >> ~/.aws/config
- name: Debug 1
run: |
cat ~/.aws/config
- name: Debug 2
run: |
aws s3 ls --region fsn1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.HETZNER_S3_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.HETZNER_S3_SECRET_ACCESS_KEY}}
- name: Publish to S3
run: aws s3 cp reference.qmd s3://ch-agi-geodaten-dev/reference.qmd
# with:
# aws_key_id: ${{ secrets.HETZNER_S3_KEY_ID }}
# aws_secret_access_key: ${{ secrets.HETZNER_S3_SECRET_ACCESS_KEY}}
# #aws_bucket: ${{ secrets.AWS_BUCKET }}
# aws_bucket: ch-agi-geodaten-dev
# source_dir: '_site'