Skip to content

Commit

Permalink
upload debs to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Aug 23, 2024
1 parent 18e9215 commit a90dccc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
TZ=Europe/Helsinki ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt --quiet update --assume-yes
apt --quiet install --assume-yes devscripts equivs git
apt --quiet install --assume-yes devscripts equivs git nodejs
- name: git clone
uses: myci-actions/checkout@master
- name: install myci
Expand All @@ -52,11 +52,18 @@ jobs:
- name: install deps
run: myci-deb-install-build-deps.sh
- name: build
run: dpkg-buildpackage --unsigned-source --unsigned-changes
run: |
dpkg-buildpackage --unsigned-source --unsigned-changes
mv ../*.*deb .
- name: upload deb packages to artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}_${{ matrix.codename }}_${{ matrix.labels[0] }}_debs
path: "*.*deb"
- name: deploy deb packages
run: |
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main ../${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb
myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main ${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb
if: startsWith(github.ref, 'refs/tags/')
##### archlinux #####
archlinux:
Expand Down

0 comments on commit a90dccc

Please sign in to comment.