Skip to content

Commit

Permalink
remove flatpak build
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius2001 committed Feb 16, 2021
2 parents c8a5603 + 3732f00 commit 5fc79f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 52 deletions.
1 change: 0 additions & 1 deletion .github/actions_scripts/analyse_git_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,3 @@ def set_github_variable(varname, varval):
set_github_variable("JAMULUS_VERSION", release_version_name)
set_github_variable("RELEASE_VERSION_NAME", release_version_name)
set_github_variable("X_GITHUB_WORKSPACE", os.environ['GITHUB_WORKSPACE'])
set_github_variable("BUILD_FLATPACK", str(False).lower())
51 changes: 0 additions & 51 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
version: ${{ steps.jamulus-build-vars.outputs.JAMULUS_VERSION }}
version_name: ${{ steps.jamulus-build-vars.outputs.RELEASE_VERSION_NAME }}
x_github_workspace: ${{ steps.jamulus-build-vars.outputs.X_GITHUB_WORKSPACE }} #needed, because matrix can not directly access ${{ github.workspace }} aparrently
build_flatpack: ${{ steps.jamulus-build-vars.outputs.BUILD_FLATPACK }}


steps:
Expand Down Expand Up @@ -238,53 +237,3 @@ jobs:
if: matrix.config.uses_codeql
uses: github/codeql-action/analyze@v1


## Builds a Linux flatpack ##
flatpak-builder:
name: "Build Flatpak (artifact)"
if: ${{ contains(needs.create_release.outputs.build_flatpack, 'true') }}
runs-on: ubuntu-20.04
needs: [create_release]
container:
image: docker.io/bilelmoussaoui/flatpak-github-actions
options: --privileged
steps:
- uses: actions/checkout@v2
- id: flatpak-prepare
name: Change branch name in manifest
run: python3 io.jamulus.Jamulus.prepare.py $GITHUB_SHA
working-directory: ./distributions/
env:
jamulus_project_path: ${{ github.workspace }}
jamulus_buildversionstring: ${{ needs.create_release.outputs.version_name }}
- uses: bilelmoussaoui/flatpak-github-actions@v2
with:
bundle: "${{ steps.flatpak-prepare.outputs.flatpak_bundle }}"
manifest-path: "distributions/io.jamulus.Jamulus.json"

# download artifact
- id: flatpak-download
uses: actions/download-artifact@v2
with:
name: ${{ steps.flatpak-prepare.outputs.flatpak_name }}
path: ~/${{ steps.flatpak-prepare.outputs.flatpak_name }}

- name: echo download-path
run: "echo ${{steps.flatpak-download.outputs.download-path}}"
- name: ls download-path
run: "ls ${{steps.flatpak-download.outputs.download-path}}"
- name: ls githome ~
run: "ls ~/"

# Upload Artifact to Release
- name: Upload Flatpack
if: ${{ contains(needs.create_release.outputs.publish_to_release, 'true') }}
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }} # See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ${{steps.flatpak-download.outputs.download-path}}/${{ steps.flatpak-prepare.outputs.flatpak_bundle }}
asset_name: ${{ steps.flatpak-prepare.outputs.flatpak_name }}
asset_content_type: application/octet-stream

0 comments on commit 5fc79f8

Please sign in to comment.