Upload artifacts to my server as well #389
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Select correct Xcode | |
uses: mobiledevops/xcode-select-version-action@v1 | |
with: | |
xcode-select-version: 14.2 | |
- name: Install dependencies (packages) | |
run: | | |
brew install make gnu-sed ldid-procursus | |
- name: Install dependecies | |
run: | | |
curl -LO https://static.palera.in/artifacts/loader/universal_lite/palera1nLoader.ipa | |
curl -LO https://static.palera.in/binpack.tar | |
install -m644 binpack.tar palera1nLoader.ipa src | |
- name: Compile | |
run: sudo gmake -j$(sysctl -n hw.ncpu) all | |
- name: Prepare for upload | |
run: | | |
mkdir dist | |
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: | |
host: ${{ secrets.NICKCHAN_FTP_HOST }} | |
port: ${{ secrets.NICKCHAN_FTP_PORT }} | |
username: palera1n | |
password: ${{ secrets.NICKCHAN_FTP_PASS }} | |
forceUpload: true | |
dryRun: false | |
localDir: 'dist/' | |
remoteDir: '/palera1n/c-rewrite/deps/' | |
- name: Upload artifact | |
uses: wangyucode/[email protected] | |
with: | |
host: ${{ secrets.MINEEK_FTP_HOST }} | |
username: cdnfiles | |
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 }}' |