Skip to content

Run Dresden importer. #2307

Run Dresden importer.

Run Dresden importer. #2307

Workflow file for this run

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 }}