[NFC] Reorgranize CI tasks into their own files #3139
Workflow file for this run
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
# This workflow builds the client (UI), the server, builds the JAR. | ||
name: CI | ||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: [ master ] | ||
merge_group: | ||
jobs: | ||
photon-release: | ||
needs: [photon-build-package, photon-image-generator] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# Download literally every single artifact. This also downloads client and docs, | ||
# but the filtering below won't pick these up (I hope) | ||
- uses: actions/download-artifact@v2 | ||
- run: find | ||
# Push to dev release | ||
- uses: pyTooling/Actions/releaser@r0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: 'Dev' | ||
rm: true | ||
files: | | ||
**/*.xz | ||
**/*.jar | ||
if: github.event_name == 'push' | ||
# Upload all jars and xz archives | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
**/*.xz | ||
**/*.jar | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |