Skip to content

Commit

Permalink
Merge pull request #27 from Neurodiversity-in-Business/feature/makene…
Browse files Browse the repository at this point in the history
…wtagstest

Update release.yml
  • Loading branch information
UsiDiamond authored Jul 6, 2023
2 parents 31f407e + 6f6a6a6 commit 2b0a11d
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%S')"
- name: Test with environment variables
run: echo $TAG_NAME - $RELEASE_NAME
env:
TAG_NAME: nightly-tag-${{ steps.date.outputs.date }}
RELEASE_NAME: nightly-release-${{ steps.date.outputs.date }}
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Archive Release
uses: thedoctor0/[email protected]
with:
Expand All @@ -24,7 +39,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
tag_name: nightly-tag-${{ steps.date.outputs.date }}
release_name: nightly-release-${{ steps.date.outputs.date }}
draft: false
prerelease: true

0 comments on commit 2b0a11d

Please sign in to comment.