Skip to content

Commit

Permalink
ci: test new nightly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Nov 4, 2023
1 parent 902fe61 commit 3425668
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Nightly release

permissions:
id-token: write
contents: write
actions: write
deployments: write
pull-requests: read


on:
push:
branches:
- master

jobs:
create-nightly-release:
name: Create Nightly relesae
runs-on: ubuntu-latest

steps:
- name: Get tag
uses: project-error/[email protected]
with:
environment: "dev"
prerelease: true
id: get_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Output releas tag
run: echo "New release tag ${{ steps.get_tag.outputs.release_tag }}"
12 changes: 6 additions & 6 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Nightly release

on:
push:
branches:
- master
tags-ignore:
- v*
workflow_dispatch:

jobs:
create-nightly-release:
Expand All @@ -16,8 +12,12 @@ jobs:
- name: Get tag
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
id: get_tag

- name: Get new tag
id: get_new_tag

- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/tagged-releases.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Tagged Release Publisher
on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
create-tagged-release:
name: Build and Create Tagged Release
Expand Down

0 comments on commit 3425668

Please sign in to comment.