fix(release): reduce env artifacts

This commit is contained in:
Jguer 2020-01-12 18:19:57 +01:00
parent a34e080bf6
commit 4da27c37c8
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35

View file

@ -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 }}