Skip to content

Commit

Permalink
chore: Release workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jag3dagster committed Feb 4, 2024
1 parent fba8130 commit f94bc9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/actions/split-tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const core = require("@actions/core");

const tag = core.getInput('tag', { required: true });
const splitTag = tag.split('/');

console.log(tag);
console.log(splitTag);

core.exportVariable('tag_project', splitTag[0]);
core.exportVariable('tag_version', splitTag[1]);
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ name: Release

on:
push:
tags-ignore:
- 'v*.*.*'
tags:
- '*/v*.*.*'

jobs:
create-releae:
name: Build and created tagged release
runs-on: ubuntu-latest

steps:
- name: Install archive tool
run: sudo apt install zip
- name: Split tag
run: .github/actions/split-tag.js
with:
tag: ${{ github.ref_name }}

- name: Checkout source code
uses: actions/[email protected]
Expand Down

0 comments on commit f94bc9f

Please sign in to comment.