diff --git a/.github/workflows/tauri.yml b/.github/workflows/tauri.yml index 83871c1..963ddb5 100644 --- a/.github/workflows/tauri.yml +++ b/.github/workflows/tauri.yml @@ -12,11 +12,6 @@ jobs: uses: actions/checkout@v4.1.7 with: submodules: true - - name: Get release - id: get_release - uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup node uses: actions/setup-node@v4.0.3 with: @@ -36,7 +31,7 @@ jobs: TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} NODE_OPTIONS: "--max_old_space_size=4096" with: - releaseId: ${{ steps.get_release.outputs.upload_url }} + releaseId: ${{ github.event.release.upload_url }} - name: Get app version (windows) run: | $json = (Get-Content "src-tauri\tauri.conf.json" -Raw) | ConvertFrom-Json @@ -71,11 +66,6 @@ jobs: uses: actions/checkout@v4.1.7 with: submodules: true - - name: Get release - id: get_release - uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup node uses: actions/setup-node@v4.0.3 with: @@ -99,10 +89,10 @@ jobs: TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} NODE_OPTIONS: "--max_old_space_size=4096" with: - releaseId: ${{ steps.get_release.outputs.upload_url }} + releaseId: ${{ github.event.release.upload_url }} - name: Get app version id: vars - run: echo ::set-output name=tag::$(jq .package.version src-tauri/tauri.conf.json | tr -d '"') + run: echo "tag=$(jq .package.version src-tauri/tauri.conf.json | tr -d '"')" >> $GITHUB_OUTPUT - name: Move deb run: mv "src-tauri/target/release/bundle/deb/cinny_${{ steps.vars.outputs.tag }}_amd64.deb" "src-tauri/target/release/bundle/deb/Cinny_desktop-x86_64.deb" - name: Move AppImage @@ -128,11 +118,6 @@ jobs: uses: actions/checkout@v4.1.7 with: submodules: true - - name: Get release - id: get_release - uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup node uses: actions/setup-node@v4.0.3 with: @@ -154,11 +139,11 @@ jobs: TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} NODE_OPTIONS: "--max_old_space_size=4096" with: - releaseId: ${{ steps.get_release.outputs.upload_url }} + releaseId: ${{ github.event.release.upload_url }} args: "--target universal-apple-darwin" - name: Get app version id: vars - run: echo ::set-output name=tag::$(jq .package.version src-tauri/tauri.conf.json | tr -d '"') + run: echo "tag=$(jq .package.version src-tauri/tauri.conf.json | tr -d '"')" >> $GITHUB_OUTPUT - name: Move dmg run: mv "src-tauri/target/universal-apple-darwin/release/bundle/dmg/Cinny_${{ steps.vars.outputs.tag }}_universal.dmg" "src-tauri/target/universal-apple-darwin/release/bundle/dmg/Cinny_desktop-universal.dmg" - name: Move app.tar.gz @@ -186,4 +171,4 @@ jobs: - name: Run release.json run: npm run release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file