Kopier fil til gh-pages #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kopier fil til gh-pages | |
on: | |
workflow_run: | |
workflows: ["01 Build and Deploy Site"] | |
types: | |
- completed | |
jobs: | |
kopier-fil: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout gh-pages branch | |
uses: actions/checkout@v3 | |
with: | |
ref: gh-pages | |
- name: Download fil fra internettet | |
run: curl -o logotest.svg https://kubdatalab.github.io/R-intro/fig/logotest.svg | |
- name: Kopier fil til det bestemte sted | |
run: mv logotest.svg assets/images/library-logo.svg | |
- name: Commit og push ændringer | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Opdateret fil på gh-pages" | |
git push |