Skip to content

Commit

Permalink
Merge pull request #58 from communitiesuk/fs-2172-shared-workflow
Browse files Browse the repository at this point in the history
FS-2172: use shared workflow for tag to release
  • Loading branch information
gidsg authored Jan 18, 2023
2 parents b5b61f5 + bb9681d commit 1af7ba0
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions .github/workflows/tag-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,15 @@ name: Tag-zip release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-prerelease

paths-ignore:
- '**/README.md'

env:
# This uses the default config, since
# build is not a actual config file in envs.
FLASK_ENV : build


jobs:
release_tag:
runs-on: ubuntu-latest
steps:

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

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

- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: '${{ github.event.repository.name }}-${{github.ref_name}}.zip'
exclusions: '*.git* *.venv/* *tests/*'

- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: '${{ github.event.repository.name }}-${{github.ref_name}}.zip'
token: ${{ secrets.GITHUB_TOKEN }}
tag-to-release:
if: ${{ github.actor != 'dependabot[bot]' }}
uses: communitiesuk/funding-service-design-workflows/.github/workflows/tag-to-release.yml@main
with:
build_static_assets: false

0 comments on commit 1af7ba0

Please sign in to comment.