From 9adbac90dc89a45367e4bf928f3d90b592630361 Mon Sep 17 00:00:00 2001 From: Andrew Mashchak Date: Wed, 8 May 2024 14:31:49 +0200 Subject: [PATCH] Add publish.yml, minor front page edit. --- .github/workflows/build.yml | 69 ----------------------------------- .github/workflows/publish.yml | 25 +++++++++++++ index.qmd | 8 ++-- 3 files changed, 30 insertions(+), 72 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index bf1fb54..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,69 +0,0 @@ -# Zola build workflow. - -# Prerequisites: -# - zola writes output to public/ -# - variables below set correctly -# -# Setting it up: -# It is a general limitation of gh-actions that they cannot make the very first -# deploy to gh-pages. It will seem to work, but not appear on the CDN to be -# online. You need to go to settings and set the gh-pages branch, then future -# deploys will work. See -# https://github.com/marketplace/actions/github-pages-action#%EF%B8%8F-first-deployment-with-github_token - -name: Build/deploy website - -env: - ZOLA_VERSION: "0.17.2" - MAIN_BRANCH: "main" - TARGET_BRANCH: "gh-pages" -# CNAME: "rtromso.uit.no" - -on: - push: - branches: - - main - pull_request: - branches: - - main - -permissions: - contents: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repository and submodules - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Install zola - run: | - set -x - wget -O - \ - "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \ - | sudo tar xzf - -C /usr/local/bin - - name: Generate HTML - run: zola build - # Add CNAME, either (first one used) - # - file in the root - # - the environment variable set above - - name: add CNAME - run: | - if [ -f CNAME ] ; then - mv CNAME public/ - echo "Copied CNAME from repository root" - exit 0 - fi - if [ -n ${{ env.CNAME }} ] ; then - echo -n ${{ env.CNAME }} > public/CNAME - echo "Used CNAME from the action workflow file" - fi - - name: Deploy to gh-pages - if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', env.MAIN_BRANCH) }} - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public - force_orphan: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8d3b95e --- /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/index.qmd b/index.qmd index 5fcc1bb..39e227a 100644 --- a/index.qmd +++ b/index.qmd @@ -2,9 +2,10 @@ title: "RTromsø: the R user group a UiT" --- -::: {.column-margin} +::: column-margin ![](RTromso-logo-hex.svg){fig-align="left"} ::: + R is a programming language which is especially powerful for statistics, data exploration, and visualization. It is open source and free to use, and has a large and active community of users. **RTromsø** is a series of meet-ups and workshops for R users at UiT, the Arctic University of Norway where we can share knowledge and experiences, and together learn more about R. @@ -15,5 +16,6 @@ R is a programming language which is especially powerful for statistics, data ex If you would like to be added or removed from the RTromsø mailing list, please visit this [page](https://nettskjema.no/a/428883) ----- -RTromsø is administered in coordination with the [Research Software Engineering](https://research-software.uit.no/) group at UiT. \ No newline at end of file +------------------------------------------------------------------------ + +RTromsø is administered in coordination with the [Research Software Engineering](https://research-software.uit.no/) group at UiT.