Build and Release #1177
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 and Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- release | |
schedule: | |
- cron: '0 0 * * *' # Everyday | |
jobs: | |
deb_package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
- name: Install package-cloud | |
run: gem install package_cloud | |
- name: Install devscripts | |
run: sudo apt-get install devscripts debhelper | |
- name: Build | |
run: | | |
tar czvf ../${PACKAGE}_${VERSION}.orig.tar.gz src icons | |
debuild -us -uc -b || exit 1 | |
env: | |
PACKAGE: gyazo | |
VERSION: 1.3.2 | |
- name: Release | |
run: ruby ./circle_release.rb | |
env: | |
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
yum_package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build and Release | |
run: | | |
docker build -t gyazo/build:latest . | |
docker run -e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN -e VERSION=$VERSION gyazo/build bash -l -c "ruby /tmp/build/rpm_release.rb" | |
env: | |
PACKAGE: gyazo | |
VERSION: 1.3.2 | |
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} |