Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jul 20, 2021
1 parent 3f5445e commit 08a3ae6
Showing 1 changed file with 46 additions and 14 deletions.
60 changes: 46 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,53 @@ on:
types: closed

jobs:
release_deb:
name: Release (Deb)
runs-on: ubuntu-latest
create_release:
name: Create Release
runs-on: ubuntu-latest

if: github.event.pull_request.merged == true && true == contains(join(github.event.pull_request.labels.*.name), 'Release')

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Release
uses: elementary/actions/release@master
env:
GIT_USER_TOKEN: "${{ secrets.GIT_USER_TOKEN }}"
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "builds@elementary.io"
with:
release_branch: 'odin'

deploy_flatpak:
name: Deploy Flatpak
runs-on: ubuntu-latest

if: github.event.pull_request.merged == true && true == contains(join(github.event.pull_request.labels.*.name), 'Release')

container:
image: ghcr.io/elementary/flatpak-platform/runtime:6
options: --privileged

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Release
uses: elementary/actions/release@master
env:
GIT_USER_TOKEN: "${{ secrets.GIT_USER_TOKEN }}"
GIT_USER_NAME: "elementaryBot"
GIT_USER_EMAIL: "builds@elementary.io"
with:
release_branch: 'juno'
- name: Checkout
uses: actions/checkout@v2

- name: Build
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@master
with:
bundle: calculator.flatpak
manifest-path: io.elementary.calculator.yml
run-tests: true
repository-name: appcenter
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
cache-key: "flatpak-builder-${{ github.sha }}"
branch: stable

- name: Deploy
uses: bilelmoussaoui/flatpak-github-actions/flat-manager@v3
with:
repository: appcenter
flat-manager-url: https://flatpak-api.elementary.io
token: ${{ secrets.FLAT_MANAGER_TOKEN }}

0 comments on commit 08a3ae6

Please sign in to comment.