Skip to content

Commit

Permalink
Deploy with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kareem Zidane committed Jul 29, 2021
1 parent 6c7815e commit f570152
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 132 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: push
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install -y rpm
gem install fpm package_cloud
- name: Build
run: |
make deb
make rpm
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
run: |
PACKAGE_CLOUD_USER="cs50"
# Deploy deb to ubuntu repos
UBUNTU_REPOS=( xenial yakkety zesty artful bionic disco eoan focal groovy )
for repo in "${UBUNTU_REPOS[@]}"; do
package_cloud push "$PACKAGE_CLOUD_USER"/ubuntu/"$repo" build/deb/*.deb
done
# Deploy rpm to fedora repos
for repo in $(seq 29 32); do
package_cloud push "$PACKAGE_CLOUD_USER"/fedora/"$repo" build/rpm/*.rpm
done
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.*
!.github
!.gitignore
!.travis.yml
build/
Expand Down
131 changes: 0 additions & 131 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 10.1.2
VERSION := 10.1.3
MAJOR_VERSION := $(shell echo $(VERSION) | cut -d'.' -f1)

# installation directory (/usr/local by default)
Expand Down

0 comments on commit f570152

Please sign in to comment.