Skip to content

Build and Release #1170

Build and Release

Build and Release #1170

Workflow file for this run

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 }}