Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use core workflow for GitHub publish #3868

Merged
merged 1 commit into from Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/actions/always/action.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/actions/finalize/action.yml

This file was deleted.

30 changes: 3 additions & 27 deletions .github/actions/publish/action.yml
Expand Up @@ -206,33 +206,9 @@ runs:
-name "latest*.yml" \
-exec yq -i e .stagingPercentage=\"$percentage\" {} \;

# https://github.com/softprops/action-gh-release#-customizing
- name: Create draft GitHub (pre)release
uses: softprops/action-gh-release@v1
with:
# use PR branch name for draft releases
name: ${{ github.event.pull_request.head.ref }}
tag_name: ${{ github.event.pull_request.head.ref }}
draft: true
prerelease: true
token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}
files: |
dist/*.AppImage
dist/*.blockmap
dist/*.deb
dist/*.dmg
dist/*.exe
dist/*.rpm
dist/*.zip
dist/latest*.yml

- name: Compress custom source
shell: pwsh
run: tar -acf ${{ runner.temp }}/custom.tgz .

- name: Upload custom artifact
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: custom-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ runner.os }}
path: ${{ runner.temp }}/custom.tgz
name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}
path: dist
retention-days: 1
13 changes: 0 additions & 13 deletions .github/actions/test/action.yml
Expand Up @@ -21,19 +21,6 @@ runs:
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
using: "composite"
steps:
- name: Delete previous draft release
if: runner.os == 'Linux'
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
set -ea

[[ '${{ inputs.VERBOSE }}' =~ on|On|Yes|yes|true|True ]] && set -x

gh release delete --yes '${{ github.event.pull_request.head.ref }}' || true

env:
GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }}

# https://github.com/actions/setup-node#caching-global-packages-data
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/flowzone.yml
Expand Up @@ -22,3 +22,9 @@ jobs:
with:
tests_run_on: '["ubuntu-18.04","macos-latest","windows-2019"]'
restrict_custom_actions: false
github_prerelease: true
# repo_config: true
# repo_description: |
# Flash OS images to SD cards & USB drives, safely and easily.
# repo_homepage: https://etcher.io/
# repo_enable_wiki: true