Skip to content

Commit 3db1c2f

Browse files
committed
Small github actions fix
1 parent a47ade0 commit 3db1c2f

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ jobs:
1717
update-verstion-and-chengelog:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
21-
with:
22-
ref: master
23-
- name: Update version file
24-
run: |
25-
cat VERSION
26-
echo "VERSION ${{ github.ref_name }}"
27-
echo -n "${{ github.ref_name }}" > VERSION
28-
- name: Update changelog file
29-
run: |
30-
echo "CHANGELOG"
31-
- name: Commit updated files
32-
run: |
33-
git config --global user.name "github-actions"
34-
git config --global user.email 'github-actions@users.noreply.github.com'
35-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
36-
git add VERSION
37-
git commit -m "Automated version update to ${{ github.ref_name }}"
38-
git push origin
39-
- name: Tag new commit
40-
run: |
41-
git tag --force ${{ github.ref_name }}
42-
git push origin ${{ github.ref_name }} --force
20+
- uses: actions/checkout@v2
21+
with:
22+
ref: master
23+
- name: Update version file
24+
run: |
25+
cat VERSION
26+
echo "VERSION ${{ github.ref_name }}"
27+
echo -n "${{ github.ref_name }}" > VERSION
28+
- name: Update changelog file
29+
run: |
30+
echo "CHANGELOG"
31+
- name: Commit updated files
32+
run: |
33+
git config --global user.name "github-actions"
34+
git config --global user.email 'github-actions@users.noreply.github.com'
35+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
36+
git add VERSION
37+
git commit -m "Automated version update to ${{ github.ref_name }}"
38+
git push origin
39+
- name: Tag new commit
40+
run: |
41+
git tag --force ${{ github.ref_name }}
42+
git push origin ${{ github.ref_name }} --force
4343
4444
update-release-github:
4545
needs: update-verstion-and-chengelog
@@ -57,27 +57,27 @@ jobs:
5757
needs: update-verstion-and-chengelog
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v2
61-
with:
62-
ref: ${{ github.ref_name }}
63-
- name: Setup Python 3.9
64-
uses: actions/setup-python@v2
65-
with:
66-
python-version: 3.9
67-
- name: Build python package
68-
run: |
69-
cat VERSION
70-
python -m pip install wheel twine
71-
python -m pip wheel . --no-deps --wheel-dir dist
72-
twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
60+
- uses: actions/checkout@v2
61+
with:
62+
ref: ${{ github.ref_name }}
63+
- name: Setup Python 3.9
64+
uses: actions/setup-python@v2
65+
with:
66+
python-version: 3.9
67+
- name: Build python package
68+
run: |
69+
cat VERSION
70+
python -m pip install wheel twine
71+
python -m pip wheel . --no-deps --wheel-dir dist
72+
twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
7373
7474
release-github-pages:
7575
needs: update-verstion-and-chengelog
7676
runs-on: ubuntu-latest
7777
steps:
78-
- uses: actions/checkout@v2
79-
with:
80-
ref: ${{ github.ref_name }}
78+
- uses: actions/checkout@v2
79+
with:
80+
ref: ${{ github.ref_name }}
8181
- name: Setup Python 3.9
8282
uses: actions/setup-python@v2
8383
with:

0 commit comments

Comments
 (0)