diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 77859e3..84131f5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -237,43 +237,3 @@ jobs: ./dist/nyalcf_cli-linux-x64 ./dist/nyalcf_cli-macos-arm64 ./dist/nyalcf_cli-macos-x64 - - publish_apt_sources: - name: apt sources publish - runs-on: ubuntu-latest - needs: - - windows - - linux - - macos - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Fetch Version - run: |- - sudo snap install yq - cd nyalcf_gui - nyalcf_version=$(yq eval '.version' pubspec.yaml) - echo "NYA_VERSION=$nyalcf_version" >> $GITHUB_ENV - cd .. - - name: Download Build Artifact(Linux) - uses: actions/download-artifact@v4 - with: - name: "Linux Artifact(Dist)" - path: dist/ - - name: Upload DEB Package - uses: wlixcc/SFTP-Deploy-Action@v1.2.4 - with: - username: root - server: ${{ secrets.APT_PUBLISH_SERVER_IP }} - password: ${{ secrets.APT_PUBLISH_SSH_PASSWORD }} - local_path: './dist/${{ env.NYA_VERSION }}/nyalcf-${{ env.NYA_VERSION }}-linux.deb' - remote_path: '/root/aptly/' - - name: Run Remote Shell - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.APT_PUBLISH_SERVER_IP }} - username: root - password: ${{ secrets.APT_PUBLISH_SSH_PASSWORD }} - port: 22 - script: bash /root/aptly/publish.sh