fix(ui): shell type not reset when server changed #15
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| info: | |
| name: Parse release info | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.get_version.outputs.version }} | |
| version-without-v: ${{ steps.get_version.outputs.version-without-v }} | |
| changelog: ${{ steps.get_changelog.outputs.changelog }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Get Version | |
| id: get_version | |
| uses: battila7/get-version-action@v2 | |
| - name: Get ChangeLog | |
| id: get_changelog | |
| working-directory: scripts | |
| run: | | |
| CHANGELOG=$(python parse_changelog_of_version.py "${{ steps.get_version.outputs.version }}") | |
| echo "changelog<<EOF" >> $GITHUB_OUTPUT | |
| echo "$(python parse_changelog_of_version.py ${{ steps.get_version.outputs.version }})" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| build-jar: | |
| name: Build Jar | |
| runs-on: ubuntu-latest | |
| needs: [ info ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '23' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Build Web with Bun | |
| working-directory: web | |
| run: bun install --frozen-lockfile && bun run build | |
| - name: Build Boot with Gradle | |
| run: ./gradlew -Pversion=${{ needs.info.outputs.version-without-v }} :boot:bootjar -x test | |
| - name: Upload Boot Jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: boot | |
| path: boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.jar | |
| docker-push: | |
| name: Docker Push | |
| needs: [ info, build-jar ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Boot Jar | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: boot | |
| path: boot/build/libs | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: docker.io | |
| username: ${{ vars.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: boot | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| build-args: | | |
| VERSION=${{ needs.info.outputs.version-without-v }} | |
| tags: | | |
| docker.io/reajason/memshell-party:latest | |
| docker.io/reajason/memshell-party:${{ needs.info.outputs.version-without-v }} | |
| ghcr.io/reajason/memshell-party:latest | |
| ghcr.io/reajason/memshell-party:${{ needs.info.outputs.version-without-v }} | |
| create-release: | |
| name: Create Release | |
| needs: [ info, docker-push ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Boot Jar | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: boot | |
| path: boot/build/libs | |
| - name: Calculate SHA-256 | |
| id: calculate_sha256 | |
| run: | | |
| sha256sum boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.jar > boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.sha256 | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| name: ${{ needs.info.outputs.version }} | |
| tag: ${{ needs.info.outputs.version }} | |
| body: ${{ needs.info.outputs.changelog }} | |
| artifacts: boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.jar,boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.sha256 | |
| deploy-northflank: | |
| name: Deploy to Northflank | |
| needs: [ docker-push ] | |
| runs-on: ubuntu-latest | |
| env: | |
| NORTHFLANK_API_KEY: ${{ secrets.NORTHFLANK_API_KEY }} | |
| steps: | |
| - name: Update Deployment | |
| run: | | |
| curl --header "Content-Type: application/json" \ | |
| --header "Authorization: Bearer $NORTHFLANK_API_KEY" \ | |
| --request POST \ | |
| --data '{"external":{"imagePath":"docker.io/reajason/memshell-party:latest","credentials":"docker-hub"},"docker":{"configType":"default"}}' \ | |
| https://api.northflank.com/v1/projects/memshellparty/services/memshellparty/deployment |