Skip to content

Commit

Permalink
KP-7378 Only deploy from main
Browse files Browse the repository at this point in the history
This way we won't overwrite the production website with unfinished
content that has not been reviewed yet. Left the extra rows as comments,
because enabling them allows one to provision the full website on their
own fork (and thus in myuser.github.io/Kielipankki instead of on the
official course material site).
  • Loading branch information
aajarven committed Jul 26, 2023
1 parent d3cde6f commit a3eabf5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Deploy GitHub Pages, compiling slides and tutorials/handouts to HTML

on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- main
# If you want to test these (*in a forked repository* to avoid overwriting the
# real production website), you can enable these rows. In that case you also
# need to run a Runner yourself, see instructions in
# https://github.com/CSCfi/kielipankki-actions-pipeline/blob/main/runners/README.md
# pull_request:
# types:
# - opened
# - reopened
# - synchronize

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit a3eabf5

Please sign in to comment.