Skip to content

Commit

Permalink
Try to fix use of release action
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Jun 2, 2023
1 parent 6620b8a commit 486f0b1
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- cron: "0 0 * * 0"

jobs:

#
# BUILD JOBS
#
Expand All @@ -23,7 +22,7 @@ jobs:
timeout-minutes: 5

steps:
- name: 'Checkout'
- name: "Checkout"
uses: actions/checkout@v2

- name: "Cache: Cargo registry"
Expand Down Expand Up @@ -105,25 +104,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: "Create release"
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GitHubToken }}
with:
body: Edit this.
draft: true
release_name: "${{ github.ref }}: Edit this"
tag_name: ${{ github.ref }}

- name: "Save release URL to file"
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: "Upload release URL file"
uses: actions/upload-artifact@v1
with:
name: release_url
path: release_url.txt
- name: "Create release"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
release_name: "Release ${{ github.ref }}"
tag_name: ${{ github.ref }}

- name: "Save release URL to file"
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: "Upload release URL file"
uses: actions/upload-artifact@v1
with:
name: release_url
path: release_url.txt

release_linux:
if: contains(github.ref, 'tags/v')
Expand All @@ -140,7 +138,7 @@ jobs:
timeout-minutes: 5

steps:
- name: 'Checkout'
- name: "Checkout"
uses: actions/checkout@v2

- name: "Cache: Cargo registry"
Expand Down Expand Up @@ -236,7 +234,7 @@ jobs:
timeout-minutes: 5

steps:
- name: 'Checkout'
- name: "Checkout"
uses: actions/checkout@v2

- name: "Cache: Cargo registry"
Expand Down

0 comments on commit 486f0b1

Please sign in to comment.