distribution/.github/workflows/release-main.yaml
fewtarius 9000b83d15
* Move samba configuration to user space.
* Remove kernel tweaks that inhibit proper sleep.
* Merge hostname change and wifi into 008-network.
* Adjust flycast build options.
* No longer build main in merge until we can work out the double build bug.
2022-10-03 19:10:53 -04:00

50 lines
1.4 KiB
YAML

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present 351ELEC
# Copyright (C) 2022-present Fewtarius
### Based on work by @pkegg
name: release-main
on:
workflow_dispatch:
env:
BRANCH: main
jobs:
launch-main-release-if-needed:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
name: checkout
with:
clean: false
fetch-depth: 0
ref: "${{env.BRANCH}}"
- name: only run on the primary repository
if: ${{ !startsWith(github.repository_owner, 'JustEnoughLinuxOS') }}
run: exit 0
- name: repository full name
id: full_name
run: |
echo "::set-output name=full_name::$(git config --get remote.origin.url | sed 's|^.*github.com/||g' | sed 's/.git$//g')"
- name: Get date for artifacts
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Repository Dispatch
if: steps.changes.outputs.changes != '0'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS }}
repository: ${{ steps.full_name.outputs.full_name }}
event-type: release-main
client-payload: |
{
"branch" : "${{ env.BRANCH }}",
"release_tag" : "${{steps.date.outputs.date}}",
}