Skip to content

Commit eedd3c2

Browse files
committed
Merge pull request #101 from NrgXnat/releases/1.9.2
Updated to 1.9.2 release, plus updates to psql and nginx
2 parents c8870b6 + 4e90771 commit eedd3c2

File tree

6 files changed

+150
-101
lines changed

6 files changed

+150
-101
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Zip All Non-Dot Files
2+
3+
on:
4+
push:
5+
tags:
6+
- '*' # Only run on tag pushes
7+
8+
jobs:
9+
zip-and-release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Get repository name
15+
id: repo
16+
run: |
17+
REPO_NAME=$(basename "$GITHUB_REPOSITORY")
18+
echo "repo_name=${REPO_NAME}" >> $GITHUB_OUTPUT
19+
20+
- name: Get current tag
21+
id: tag
22+
run: |
23+
TAG_NAME="${GITHUB_REF#refs/tags/}"
24+
echo "tag_name=${TAG_NAME}" >> $GITHUB_OUTPUT
25+
26+
- name: Zip all non-dot files and directories
27+
run: |
28+
ZIP_NAME="${{ steps.repo.outputs.repo_name }}-${{ steps.tag.outputs.tag_name }}.zip"
29+
zip -r "$ZIP_NAME" . -x ".*" -x "*/.*"
30+
shell: bash
31+
32+
- name: Create GitHub Release and upload ZIP
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
tag_name: ${{ steps.tag.outputs.tag_name }}
36+
files: ${{ steps.repo.outputs.repo_name }}-${{ steps.tag.outputs.tag_name }}.zip
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)