Migrated cache to artifact - fix4

This commit is contained in:
Xargon Wan 2022-05-03 10:55:39 +09:00
parent c6ac3b5913
commit bfb35c8d19

View file

@ -265,44 +265,43 @@ jobs:
# path: /home/runner/work/RetroDECK # path: /home/runner/work/RetroDECK
# key: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }} # key: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
- name: Download build specific cache - name: Download build specific cache
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }} name: ${{ needs.Job1_-_Prepearing_enviornment.outputs.buildID }}
path: /home/runner/work/RetroDECK path: /home/runner/work/RetroDECK
- name: Get date for artifacts - name: Get date for artifacts
id: date id: date
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')" run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')"
- name: Extract branch name - name: Extract branch name
shell: bash shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch id: extract_branch
- name: Publish the flatpak in a new cooker release - name: Publish the flatpak in a new cooker release
#if: steps.cache-cooker.outputs.cache-hit != 'true' #if: steps.cache-cooker.outputs.cache-hit != 'true'
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}" tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
body: | body: |
# Release Notes (Cooker) # Release Notes (Cooker)
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}. This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
Cooker channel is provided for the community to test fixes and explore new functionality. Cooker channel is provided for the community to test fixes and explore new functionality.
Please DO NOT open issues or ask support on this build. Please DO NOT open issues or ask support on this build.
artifacts: "RetroDECK.flatpak" artifacts: "RetroDECK.flatpak"
allowUpdates: true allowUpdates: true
prerelease: true prerelease: true
draft: false draft: false
token: ${{ secrets.TRIGGER_BUILD_TOKEN }} token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
repo: RetroDECK-cooker repo: RetroDECK-cooker
- name: Upload global cache
uses: actions/upload-artifact@v3
with:
name: global-cache
path: /home/runner/work/RetroDECK
continue-on-error: true
- name: Upload global cache
uses: actions/upload-artifact@v3
with:
name: global-cache
path: /home/runner/work/RetroDECK
continue-on-error: true