main ci: upload an artifact per arch (#809)
* main ci: upload an artifact per arch * main ci: do deploy only if 'zigtools' is the owner
This commit is contained in:
parent
1e99692d5c
commit
ddf3ef1389
56
.github/workflows/main.yml
vendored
56
.github/workflows/main.yml
vendored
@ -53,21 +53,59 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sed -e '1,5d' < README.md > artifacts/${target}/README.md
|
sed -e '1,5d' < README.md > artifacts/${target}/README.md
|
||||||
cp LICENSE artifacts/${target}/
|
cp LICENSE artifacts/${target}/
|
||||||
cd artifacts/${target}/
|
|
||||||
tar cfa ${target}.tar.zst *.md bin/*
|
|
||||||
mv ${target}.tar.zst ../
|
|
||||||
cd ../..
|
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload x86_64-windows artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: builds
|
name: zls-x86_64-windows
|
||||||
path: artifacts/*.tar.zst
|
path: artifacts/x86_64-windows/
|
||||||
|
|
||||||
|
- name: Upload x86_64-linux artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-x86_64-linux
|
||||||
|
path: artifacts/x86_64-linux/
|
||||||
|
|
||||||
|
- name: Upload x86_64-macos artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-x86_64-macos
|
||||||
|
path: artifacts/x86_64-macos/
|
||||||
|
|
||||||
|
- name: Upload x86-windows artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-x86-windows
|
||||||
|
path: artifacts/x86-windows/
|
||||||
|
|
||||||
|
- name: Upload x86-linux artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-x86-linux
|
||||||
|
path: artifacts/x86-linux/
|
||||||
|
|
||||||
|
- name: Upload aarch64-linux artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-aarch64-linux
|
||||||
|
path: artifacts/aarch64-linux/
|
||||||
|
|
||||||
|
- name: Upload aarch64-macos artifact
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zls-aarch64-macos
|
||||||
|
path: artifacts/aarch64-macos/
|
||||||
|
|
||||||
- name: Beam to Felix
|
- name: Beam to Felix
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master' && github.repository_owner == 'zigtools' }}
|
||||||
uses: easingthemes/ssh-deploy@v2.1.1
|
uses: easingthemes/ssh-deploy@v2.1.1
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_PRIVKEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_PRIVKEY }}
|
||||||
|
Loading…
Reference in New Issue
Block a user