From b4e44b9d6e0da7f85b1826a8bf4a78795840bd40 Mon Sep 17 00:00:00 2001 From: bboysoul <31786046+bboysoulcn@users.noreply.github.com> Date: Mon, 28 Jun 2021 22:36:54 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 89 +---------------------------------- 1 file changed, 1 insertion(+), 88 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c47813..175186d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,93 +71,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build_android: - - runs-on: ubuntu-latest - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Build - run: | - chmod +x build.android.sh - docker run --rm -i -w /app -v $(pwd):/app -e ANDROID_HOME=/usr/local/android_sdk -e GOPROXY=direct fyneio/fyne-cross:android-latest /app/build.android.sh - - name: Upload - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - android_client.apk - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build_spk: - - runs-on: ubuntu-latest - steps: - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Build - run: | - git clone https://github.com/cnlh/spksrc.git ~/spksrc - mkdir ~/spksrc/nps && cp -rf ./* ~/spksrc/nps/ - docker run -id --name spksrc --env VERSION=${{ env.RELEASE_VERSION }} -e GOPROXY=direct -v ~/spksrc:/spksrc synocommunity/spksrc /bin/bash - docker exec spksrc /bin/bash -c 'cd /spksrc && make setup && cd /spksrc/spk/npc && make' - cp ~/spksrc/packages/npc_noarch-all_${{ env.RELEASE_VERSION }}-1.spk ./npc_syno.spk - - name: Upload - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - npc_syno.spk - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - build_docker: - - runs-on: ubuntu-latest - steps: - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push nps - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile.nps - platforms: linux/amd64,linux/arm,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/nps:latest - ${{ secrets.DOCKERHUB_USERNAME }}/nps:${{ env.RELEASE_VERSION }} - - name: Build and push npc - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile.npc - platforms: linux/amd64,linux/arm,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/npc:latest - ${{ secrets.DOCKERHUB_USERNAME }}/npc:${{ env.RELEASE_VERSION }} +