diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e219173..87dfca8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,18 +38,12 @@ jobs: run: | export version=$(echo ${{ steps.latest.outputs.name }} | sed 's/^v//') echo ::set-output name=name::$version - - name: Update Version in Files (1) + - name: Update Version in Files if: ${{ contains(steps.latest.outputs.name, '.') }} uses: datamonsters/replace-action@v2 with: files: 'blog/config.py' - replacements: '${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}' - - name: Update Version in Files (2) - if: ${{ contains(steps.latest.outputs.name, '.') }} - uses: datamonsters/replace-action@v2 - with: - files: 'web/app/package.json' - replacements: '${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}' + replacements: "${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}" - name: File Save Delay uses: jakejarvis/wait-action@master with: diff --git a/blog/config.py b/blog/config.py index d1ab81c..8bae027 100644 --- a/blog/config.py +++ b/blog/config.py @@ -2,4 +2,4 @@ SECRET_KEY = environ.get('SECRET_KEY', default='dev') ARTICLES_DIR = environ.get('ARTICLES_DIR', default='articles/') -VERSION = 'v0.18.2' +VERSION = 'v0.22.0'