diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-05-27 01:01:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-27 00:01:54 -0500 |
| commit | 0eaa533f254fa2b6d28c4cf9f1c2c9bcecac32ea (patch) | |
| tree | 37e45e51a3b0de88219df2189b0d1541195d2d15 /.github/workflows | |
| parent | 8ef6c0c2ccc99804f690635b85293f967714c431 (diff) | |
Use GH artifacts (#511)
* use gh artifacts
* update nightly links
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 71 | ||||
| -rw-r--r-- | .github/workflows/pr-artifacts.yml | 2 |
2 files changed, 16 insertions, 57 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 747318a50..2de5279b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -215,28 +215,14 @@ jobs: mv _packages/*.dmg 2Ship.dmg mv README.md readme.txt - # - name: Upload build - # if: ${{ startsWith(github.ref, 'refs/heads/develop') }} - # uses: actions/upload-artifact@v4 - # with: - # name: 2ship-mac - # path: | - # 2Ship.dmg - # readme.txt - - name: Zip build - run: | - mkdir -p _release - zip -qq _release/2ship-mac.zip 2ship.dmg readme.txt - name: Upload build if: ${{ startsWith(github.ref, 'refs/heads/develop') }} - uses: ryand56/r2-upload-action@latest + uses: actions/upload-artifact@v4 with: - r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} - r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} - r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} - r2-bucket: ${{ secrets.R2_BUCKET }} - source-dir: _release - destination-dir: ./ + name: 2ship-mac + path: | + 2Ship.dmg + readme.txt build-linux: # needs: generate-2ship-otr @@ -323,29 +309,13 @@ jobs: env: CC: gcc-12 CXX: g++-12 - # Temporarily replaced with an upload to R2 until we go public - # - name: Upload build - # uses: actions/upload-artifact@v4 - # with: - # name: 2ship-linux - # path: | - # 2ship.appimage - # readme.txt - # Remove Zip step when uploading directly to GH artifactory - - name: Zip build - run: | - mkdir -p _release - zip -qq _release/2ship-linux.zip 2ship.appimage readme.txt - name: Upload build - if: ${{ startsWith(github.ref, 'refs/heads/develop') }} - uses: ryand56/r2-upload-action@latest + uses: actions/upload-artifact@v4 with: - r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} - r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} - r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} - r2-bucket: ${{ secrets.R2_BUCKET }} - source-dir: _release - destination-dir: ./ + name: 2ship-linux + path: | + 2ship.appimage + readme.txt build-windows: # needs: generate-2ship-otr @@ -397,22 +367,11 @@ jobs: (cd build-windows && cpack) cd .. mv _packages/*.zip _packages/2ship-windows.zip - # Temporarily replaced with an upload to R2 until we go public - # - name: Unzip package - # run: Expand-Archive -Path _packages/2ship-windows.zip -DestinationPath 2ship-windows - # - name: Upload build - # if: ${{ startsWith(github.ref, 'refs/heads/develop') }} - # uses: actions/upload-artifact@v4 - # with: - # name: 2ship-windows - # path: 2ship-windows + - name: Unzip package + run: Expand-Archive -Path _packages/2ship-windows.zip -DestinationPath 2ship-windows - name: Upload build if: ${{ startsWith(github.ref, 'refs/heads/develop') }} - uses: ryand56/r2-upload-action@latest + uses: actions/upload-artifact@v4 with: - r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} - r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} - r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} - r2-bucket: ${{ secrets.R2_BUCKET }} - source-dir: _packages - destination-dir: ./ + name: 2ship-windows + path: 2ship-windows diff --git a/.github/workflows/pr-artifacts.yml b/.github/workflows/pr-artifacts.yml index de88d6d4e..43b985b5d 100644 --- a/.github/workflows/pr-artifacts.yml +++ b/.github/workflows/pr-artifacts.yml @@ -49,7 +49,7 @@ jobs: return allArtifacts.data.artifacts.reduce((acc, item) => { if (item.name === "assets") return acc; acc += ` - - [${item.name}.zip](https://nightly.link/${context.repo.owner}/${context.repo.repo}/actions/artifacts/${item.id}.zip?h=20a00267c7ffeb2eb80ab31f356f2ba5f120f43c)`; + - [${item.name}.zip](https://nightly.link/${context.repo.owner}/${context.repo.repo}/actions/artifacts/${item.id}.zip)`; return acc; }, '### Build Artifacts'); - id: 'add-to-pr' |
