-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kareem Zidane
committed
Jul 29, 2021
1 parent
6c7815e
commit f570152
Showing
4 changed files
with
33 additions
and
132 deletions.
There are no files selected for viewing
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
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 }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.* | ||
!.github | ||
!.gitignore | ||
!.travis.yml | ||
build/ | ||
|
This file was deleted.
Oops, something went wrong.
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