Upload beta to Wesnoth addon server #1229
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: Upload beta to Wesnoth addon server | |
# Runs daily. | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
upload-beta: | |
runs-on: ubuntu-20.04 | |
env: | |
PBL_PASSPHRASE: ${{ secrets.PBL_PASSPHRASE }} | |
PBL_EMAIL: ${{ secrets.PBL_EMAIL }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetching up to the commit with the latest release is necessary to use "git describe" | |
- uses: actions/cache@v2 | |
with: | |
path: wesnoth_tools | |
key: buildcache-feb2022 | |
- name: Install dependencies | |
run: sudo apt-get install -y luarocks && sudo luarocks install luacheck | |
- name: RUN -- luacheck . | |
run: luacheck --no-color . | |
# If luacheck hasn't failed, then upload the addon. | |
- run: .github/scripts/upload_beta_addon.sh |