Skip to content

Fix ci

Fix ci #8

Workflow file for this run

name: release-assets
on:
push:
branches:
- main
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Set up Python
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-python@v5
python-version: '3.11'

Check failure on line 27 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release-assets

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 27, Col: 9): Unexpected value 'python-version' .github/workflows/release.yml (Line: 51, Col: 9): Unexpected value 'working_directory'
- name: Set up Poetry
if: startsWith(github.ref, 'refs/tags/')
uses: snok/install-poetry@v1
- name: Create Release tag
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
id: generate_tag
with:
draft: false
prerelease: false
- name: Build server with Maven
if: startsWith(github.ref, 'refs/tags/')
run: mvn versions:set -DnewVersion=${{ steps.generate_tag.outputs.id }} -DskipTests --no-transfer-progress clean package
working-directory: tsumugi-server
- name: Build client with poetry
if: startsWith(github.ref, 'refs/tags/')
run: |
poetry version ${{ steps.generate_tag.output.id }}
poetry build --format sdist
working_directory: tsumugi-python
- name: Upload assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
append_body: true
files: |
tsumugi-server/target/tsumugi-server-*.jar
tsumugi-python/dist/tsumugi-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}