Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Created release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sopyb committed Sep 6, 2023
1 parent bfa8b88 commit 102f140
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create Release

on:
push:
branches:
- prod

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build # replace with your build command, if any

- name: Run tests
run: npm test # replace with your test command, if any

- name: Generate version number
id: vars
run: echo ::set-output name=version::$(date +%Y.%m.%d)

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.vars.outputs.version }}
release_name: Release ${{ steps.vars.outputs.version }}
draft: false
prerelease: false

0 comments on commit 102f140

Please sign in to comment.