Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
github actions: try upload failure workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Mar 15, 2024
1 parent 2018dc6 commit a02b17e
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
name: Application

on:
#pull_request:
# types: [opened, synchronize]
push:
#branches:
# - main
# - development
#paths:
# - .github/workflows/*
# - app/**
# - external/alpine_iso/**
# - external/libqemu-jni/**
# - gradle/**
# - gradle*
# - ./*.gradle
tags:
- '*'
workflow_dispatch:

jobs:
gradle-wrapper-check:
Expand Down Expand Up @@ -123,6 +109,8 @@ jobs:
name: Build application
needs: [libqemu-jni, system-image, terminal-tests]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -197,33 +185,6 @@ jobs:
env:
KEY_PASSPHRASE: "${{ secrets.ANDROID_KEY_PASSPHRASE }}"

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: NeoTTY-git-${{ steps.build-id.outputs.git_rev }}
path: ./artifacts/

publish:
name: Publish release
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
needs: [app]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get build id
id: build-id
run: echo "::set-output name=git_rev::$(git rev-parse --short HEAD)"

- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: NeoTTY-git-${{ steps.build-id.outputs.git_rev }}
path: ./artifacts/

- name: Publish release
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
run: |
Expand Down

0 comments on commit a02b17e

Please sign in to comment.