code refactor
This commit is contained in:
35
.github/workflows/attach-release.yml
vendored
35
.github/workflows/attach-release.yml
vendored
@@ -1,30 +1,39 @@
|
||||
name: Attach Release Artifacts
|
||||
|
||||
on:
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- released
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
download-artifacts:
|
||||
upload-artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: create artifacts directory
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Create artifacts directory
|
||||
run: mkdir artifacts
|
||||
working-directory: ./
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
- name: Upload all artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: all-artifacts
|
||||
path: artifacts
|
||||
|
||||
download-artifacts:
|
||||
needs: upload-artifacts
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: all-artifacts
|
||||
|
||||
- name: Display structure of downloaded files
|
||||
run: ls -R
|
||||
working-directory: artifacts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
run: ls -R
|
||||
Reference in New Issue
Block a user