mirror of
https://github.com/zen-browser/flatpak.git
synced 2025-07-07 08:55:35 +02:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Publish Tar
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version to publish'
|
|
required: true
|
|
default: 'latest'
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish-tar:
|
|
permissions: write-all
|
|
name: Publish tar as release
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Archive
|
|
run: tar -cf archive.tar ./*
|
|
|
|
- name: Output version from file to variable
|
|
id: version
|
|
run: |
|
|
echo "::set-output name=version::$(cat version)"
|
|
|
|
- name: Create release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
files: archive.tar
|
|
tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
|
|
name: Release for Zen - ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
|
|
body: |
|
|
### Release ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || steps.version.outputs.version }}
|
|
- sha: `${{ github.sha }}`
|