Skip to content

Commit

Permalink
Upload artifacts to my cdn on this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mineek authored Jan 22, 2024
1 parent fdd9de3 commit 3ed4ec7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
cp src/ramdisk.dmg dist/ramdisk.dmg
cp src/binpack.dmg dist/binpack.dmg
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Upload artifact
uses: wangyucode/[email protected]
with:
Expand All @@ -49,3 +53,14 @@ jobs:
dryRun: false
localDir: 'dist/'
remoteDir: '/palera1n/c-rewrite/deps/'

- name: Upload artifact
uses: wangyucode/[email protected]
with:
host: ${{ secrets.MINEEK_FTP_HOST }}
username: mineekcdn
password: ${{ secrets.MINEEK_FTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'dist/'
remoteDir: '/uploads/palera1n/artifacts/jbinit/${{ steps.branch-name.outputs.ref_branch || github.ref_name }}/${{ github.run_number }}'

0 comments on commit 3ed4ec7

Please sign in to comment.