Skip to content

Commit 5c3bb70

Browse files
authored
fix workflow (#5)
* fix workflow * fix release job
1 parent 3ff3ab3 commit 5c3bb70

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,22 @@ jobs:
3838
run: |
3939
just lintc
4040
if [[ $? -ne 0 ]]; then echo "Run just format to fix"; fi
41+
release:
42+
name: "Release"
43+
runs-on: ubuntu-latest
44+
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v2
48+
- name: Setup | just
49+
uses: extractions/setup-just@v1
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4152
- name: Release | Draft Release Notes
42-
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
4353
run: |
4454
just draft-release > RELEASE_NOTES.txt
45-
cp standalont_ftp.py ftp.py
55+
cp standalone_ftp.py ftp.py
4656
- name: Release | Create Draft Release
47-
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v')
4857
uses: softprops/action-gh-release@v1
4958
with:
5059
draft: true

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ publish:
7171

7272
# Display draft release notes
7373
draft-release:
74-
@sed -n $(grep -n "LATEST" CHANGELOG.md | cut -d ":" -f 1)',{{CHANGELOG_LATEST_LAST}}p;{{CHANGELOG_LATEST_LAST}}q' CHANGELOG.md | head -n -1
74+
@sed -n $(grep -n "LATEST" CHANGELOG.md | cut -d ":" -f 1)',{{CHANGELOG_LATEST_LAST}}p;{{CHANGELOG_LATEST_LAST}}q' CHANGELOG.md | head -n -1 | tail -n +2
7575

7676
# Clean output
7777
clean:

0 commit comments

Comments
 (0)