Skip to content

Commit

Permalink
Merge pull request #3868 from balena-io/ab77/operational
Browse files Browse the repository at this point in the history
Use core workflow for GitHub publish
  • Loading branch information
ab77 committed Dec 5, 2022
2 parents 540dc31 + f3844d5 commit 895c306
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 132 deletions.
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

0 comments on commit 895c306

Please sign in to comment.