Skip to content

Commit

Permalink
Merge pull request #528 from UBC-DSCI/main
Browse files Browse the repository at this point in the history
Production update
  • Loading branch information
trevorcampbell authored Aug 31, 2023
2 parents c42302b + 6903bb7 commit 7a53425
Show file tree
Hide file tree
Showing 633 changed files with 2,052 additions and 35,935 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on:
branches:
- production
paths:
- '*.Rmd'
- 'index.Rmd'
- '_bookdown.yml'
- '_output.yml'
- 'source/*.Rmd'
- 'source/*.bib'
- 'source/*.css'
- 'data/**'
- 'img/**'

Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/update_build_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rebuild and publish new ubcdsci/intro-to-ds image on DockerHub
on:
push:
branches:
- master
- main
paths:
- Dockerfile
jobs:
Expand All @@ -11,11 +11,11 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout master
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: '0'
ref: 'master'
ref: 'main'
- name: Rebuild and publish image
id: rebuild
uses: elgohr/Publish-Docker-Github-Action@v5
Expand All @@ -29,7 +29,7 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull origin master
git pull origin main
sed 's/ubcdsci\/intro-to-ds:[[:alnum:]]\+/ubcdsci\/intro-to-ds:${{ steps.rebuild.outputs.snapshot-tag }}/g' build_html.sh > build_html.tmp && mv build_html.tmp build_html.sh
chmod u+x build_html.sh
git add build_html.sh
Expand All @@ -38,13 +38,21 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull origin master
git pull origin main
sed 's/ubcdsci\/intro-to-ds:[[:alnum:]]\+/ubcdsci\/intro-to-ds:${{ steps.rebuild.outputs.snapshot-tag }}/g' build_pdf.sh > build_pdf.tmp && mv build_pdf.tmp build_pdf.sh
chmod u+x build_pdf.sh
git add build_pdf.sh
git commit -m "update build_pdf.sh script with new docker image"
- name: Update docker-compose.yml script
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull origin main
sed 's/ubcdsci\/intro-to-ds:[[:alnum:]]\+/ubcdsci\/intro-to-ds:${{ steps.rebuild.outputs.snapshot-tag }}/g' docker-compose.yml > docker-compose.tmp && mv docker-compose.tmp docker-compose.yml
git add docker-compose.yml
git commit -m "update docker-compose.yml script with new docker image"
- name: Push changes to build scripts
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'master'
branch: 'main'
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*.sw*
_bookdown_files
**.ipynb_checkpoints
.rstudio/*
pdf/_book
pdf/_bookdown_files
pdf/*.log
.rstudio/**
docs/**
.local/**
*.log
_main.Rmd
_main_files/**
4 changes: 0 additions & 4 deletions .local/share/rstudio/rstudio-server.json

This file was deleted.

263 changes: 0 additions & 263 deletions .rstudio/addin_registry

This file was deleted.

2 changes: 0 additions & 2 deletions .rstudio/history_database

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

1 change: 0 additions & 1 deletion .rstudio/notebooks/3A6D66E8-08-regression2/1/s/chunks.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .rstudio/notebooks/6F5A0AFC-07-regression1/1/s/chunks.json

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
5 changes: 0 additions & 5 deletions .rstudio/notebooks/paths

This file was deleted.

2 changes: 0 additions & 2 deletions .rstudio/persistent-state

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7a53425

Please sign in to comment.