diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..e82eb7b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +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@v4 + + - 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 }} diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..6e232d1 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +www.digital-history.se diff --git a/_quarto.yml b/_quarto.yml index ec380d6..2f6cdbd 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -1,10 +1,9 @@ project: type: website - output-dir: _site + output-dir: docs preview: port: 7112 - website: title: "Digital History in Sweden" site-url: "https://www.digital-history.se"