mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
name: 'release'
|
|
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_type:
|
|
description: 'Release type [build, betafish, patch, minor, major]'
|
|
required: true
|
|
default: 'build'
|
|
|
|
jobs:
|
|
release:
|
|
name: release
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 2.6
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: install package_cloud
|
|
run: gem install package_cloud
|
|
|
|
- name: configure git
|
|
run: |
|
|
git config --global user.name 'Dokku Bot'
|
|
git config --global user.email no-reply@dokku.com
|
|
|
|
- name: build package
|
|
run: contrib/release-dokku ${{ github.event.inputs.release_type }}
|
|
|
|
- name: upload packages
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: build
|
|
path: build
|