summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeniz Turgut <dturgut@gmail.com>2022-10-20 02:48:01 +0300
committerDeniz Turgut <dturgut@gmail.com>2022-10-20 04:09:48 +0300
commit9d509253c3a25a1ab8082e2d7985d17a0ef187ea (patch)
tree52b171e3e406b996afdd897b2bcf2fa968f2a3bf
parent2a7e691000db4b69b1b4c960141f7c00eff5f06d (diff)
downloadpelican-9d509253c3a25a1ab8082e2d7985d17a0ef187ea.tar.gz
update github actions
see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
-rw-r--r--.github/workflows/main.yml33
1 files changed, 17 insertions, 16 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 50a8714c..59d6c95c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -29,13 +29,13 @@ jobs:
python: "3.7"
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python ${{ matrix.config.python }}
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python }}
- name: Set up Pip cache (Linux)
- uses: actions/cache@v2
+ uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
@@ -43,7 +43,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Pip cache (macOS)
- uses: actions/cache@v2
+ uses: actions/cache@v3
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
@@ -51,7 +51,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Setup pip cache (Windows)
- uses: actions/cache@v2
+ uses: actions/cache@v3
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
@@ -62,7 +62,7 @@ jobs:
if: startsWith(runner.os, 'Linux')
run: sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
- name: Install pandoc
- uses: r-lib/actions/setup-pandoc@v1
+ uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "2.9.2"
- name: Install tox
@@ -82,13 +82,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Set pip cache (Linux)
- uses: actions/cache@v2
+ uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
@@ -106,13 +106,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Set pip cache (Linux)
- uses: actions/cache@v2
+ uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
@@ -132,9 +132,9 @@ jobs:
if: ${{ github.ref=='refs/heads/master' && github.event_name!='pull_request' }}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
python-version: "3.7"
- name: Check release
@@ -144,9 +144,10 @@ jobs:
pip install poetry
pip install githubrelease
pip install --pre autopub
- echo "##[set-output name=release;]$(autopub check)"
+ autopub check
+ continue-on-error: true
- name: Publish
- if: ${{ steps.check_release.outputs.release=='' }}
+ if: steps.check_release.outcome=='success'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}