fix: 联级操作删除 #53
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: portal-server | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{github.workflow}} - ${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'lichong-a/portal-server' }} | |
environment: | |
name: dev | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-env | |
- name: Show paths | |
run: | | |
echo "GRAALVM_HOME: $GRAALVM_HOME" | |
echo "JAVA_HOME: $JAVA_HOME" | |
java --version | |
native-image --version | |
- name: Build APP jar | |
run: ./gradlew clean && ./gradlew :starter:bootJar | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: server-artifacts | |
path: starter/build/libs/portal-server*.jar | |
retention-days: 1 | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: server-artifacts | |
path: starter/build/libs/portal-server*.jar | |
- name: Docker Buildx and Push | |
uses: ./.github/actions/docker-buildx-push | |
with: | |
image-name: ${{ github.event_name == 'release' && 'portal-server' || 'portal-server-dev' }} | |
ghcr-token: ${{ secrets.GITHUB_TOKEN }} | |
dockerhub-user: ${{ secrets.DOCKER_USERNAME }} | |
dockerhub-token: ${{ secrets.DOCKER_TOKEN }} | |
aliyun-registry-user: ${{ secrets.ALIYUN_REGISTRY_USER }} | |
aliyun-registry-password: ${{ secrets.ALIYUN_REGISTRY_PASSWORD }} | |
push: true | |
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x |