Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Aug 30, 2024
1 parent 6f580b0 commit 3d6b5c1
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ jobs:
submodules: true
# we need full git history for article dates
fetch-depth: 0

- uses: actions/checkout@v4
with:
ref: 'gh-pages'
path: ./output
fetch-depth: 0
sparse-checkout: |
- name: see
run: ls -a output

- name: Setup Haxe
uses: krdlab/setup-haxe@v1
Expand All @@ -40,13 +30,29 @@ jobs:
haxelib install CodeCookBook-neko.hxml --always --quiet
haxelib install highlighting.hxml --always --quiet
haxelib list
- name: Check out gh-pages branch
uses: actions/checkout@v4
with:
ref: 'gh-pages'
path: ./output
fetch-depth: 0

- name: Prepare output directory
run:
rm -r ./output/*

- name: Generate website
run: |
haxe CodeCookBook-neko.hxml
haxe highlighting.hxml
- name: Commit
- name: Deploy to gh-pages branch
run: |
git status
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Deploy to GitHub Pages from $GITHUB_SHA"
git push
working-directory: ./output

0 comments on commit 3d6b5c1

Please sign in to comment.