mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
fix(release): reduce env artifacts
This commit is contained in:
parent
a34e080bf6
commit
4da27c37c8
1 changed files with 15 additions and 28 deletions
43
.github/workflows/docker-multiarch-tag.yml
vendored
43
.github/workflows/docker-multiarch-tag.yml
vendored
|
@ -16,24 +16,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag_prefix: 'v'
|
tag_prefix: 'v'
|
||||||
- shell: bash
|
- name: share variables
|
||||||
run: echo ${{ steps.tag_version.outputs.new_version }} > /home/runner/work/yay/yay/new_version.
|
shell: bash
|
||||||
- shell: bash
|
run: |
|
||||||
run: echo ${{ steps.tag_version.outputs.new_tag }} > /home/runner/work/yay/yay/new_tag.
|
mkdir env
|
||||||
- shell: bash
|
echo ${{ steps.tag_version.outputs.new_version }} > env/new_version
|
||||||
run: echo ${{ steps.tag_version.outputs.previous_tag }} > /home/runner/work/yay/yay/previous_tag.
|
echo ${{ steps.tag_version.outputs.new_tag }} > env/new_tag
|
||||||
|
echo ${{ steps.tag_version.outputs.previous_tag }} > env/previous_tag
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: new_version
|
name: env
|
||||||
path: new_version
|
path: env
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: new_tag
|
|
||||||
path: new_tag
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: previous_tag
|
|
||||||
path: previous_tag
|
|
||||||
build-releases:
|
build-releases:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -46,12 +39,12 @@ jobs:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: new_version
|
name: env
|
||||||
- name: Read info
|
- name: Read info
|
||||||
id: tags
|
id: tags
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
`:set-output name=VERSION::$(cat new_version/new_version)`
|
`:set-output name=VERSION::$(cat env/new_version)`
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt update -y && sudo apt install -y qemu qemu-user-static
|
run: sudo apt update -y && sudo apt install -y qemu qemu-user-static
|
||||||
- name: Setup qemu-user-static
|
- name: Setup qemu-user-static
|
||||||
|
@ -74,20 +67,14 @@ jobs:
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: new_version
|
name: env
|
||||||
- uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: new_tag
|
|
||||||
- uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: previous_tag
|
|
||||||
- name: Read info
|
- name: Read info
|
||||||
id: tags
|
id: tags
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
`:set-output name=VERSION::$(cat new_version/new_version)`
|
`:set-output name=VERSION::$(cat env/new_version)`
|
||||||
`:set-output name=TAG::$(cat new_tag/new_tag)`
|
`:set-output name=TAG::$(cat env/new_tag)`
|
||||||
`:set-output name=PREV_TAG::$(cat previous_tag/previous_tag)`
|
`:set-output name=PREV_TAG::$(cat env/previous_tag)`
|
||||||
- name: Set version
|
- name: Set version
|
||||||
id: changelog
|
id: changelog
|
||||||
run: ./testdata/ci/changelog.sh ${{ steps.tags.outputs.previous_tag }} ${{ steps.tags.outputs.new_tag }}
|
run: ./testdata/ci/changelog.sh ${{ steps.tags.outputs.previous_tag }} ${{ steps.tags.outputs.new_tag }}
|
||||||
|
|
Loading…
Reference in a new issue