Add Bal and workshop with Confluence in Bournemouth (#1272) #2306
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: Publish | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get dancelist version | |
run: echo "HEAD=$(git ls-remote https://github.com/qwandor/dancelist HEAD|cut -f1)" >> $GITHUB_OUTPUT | |
id: version | |
- name: Cache .cargo and target | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin | |
~/.cargo/git | |
~/.cargo/registry | |
~/.cargo/.crates.toml | |
~/.cargo/.crates2.json | |
key: ${{ runner.os }}-cargo-install-${{ steps.version.outputs.HEAD }} | |
- name: Install dancelist | |
run: cargo install --git https://github.com/qwandor/dancelist | |
- name: Make release directory | |
run: mkdir release | |
- name: Concatenate | |
run: dancelist cat events/ > release/events.yaml | |
- name: Publish | |
uses: s0/git-publish-subdir-action@v2.6.0 | |
env: | |
REPO: self | |
BRANCH: release | |
FOLDER: release | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Reload | |
run: wget --no-verbose -O - https://folkdance.page/reload --post-data reload_token=${{ secrets.RELOAD_TOKEN }} |