Skip to content

Commit

Permalink
ci(release): fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
m-thalmann committed Apr 26, 2024
1 parent aa9801c commit 10232a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Docker metadata
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.IMG_NAME }}
tags: |
Expand All @@ -33,10 +33,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@ jobs:
- name: Bundle release
run: |
mkdir -p release/securedav
cp -r * ./release/securedav
cp .env.example ./release/securedav/.env.example
cp .dockerignore ./release/securedav/.dockerignore
cd release/securedav
mkdir -p ../release/securedav
cp -r * ../release/securedav
cp .env.example ../release/securedav/.env.example
cp .dockerignore ../release/securedav/.dockerignore
cd ../release/securedav
rm -rf tests phpunit.xml
rm -rf `find . -name '.git*'`
cd ..
zip -r ../SecureDAV-${{ VERSION }}.zip *
zip -r ../SecureDAV/SecureDAV-${{ env.VERSION }}.zip *
- name: Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: SecureDAV v${{ VERSION }}
tag_name: ${{ VERSION }}
release_name: SecureDAV v${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
body_path: CHANGELOG
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -79,13 +79,13 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./SecureDAV-${{ VERSION }}.zip
asset_name: SecureDAV-${{ VERSION }}.zip
asset_path: ./SecureDAV-${{ env.VERSION }}.zip
asset_name: SecureDAV-${{ env.VERSION }}.zip
asset_content_type: application/zip

- name: Build docs
run: |
echo ${{ VERSION }} > ./docs/.vuepress/version.txt
echo ${{ env.VERSION }} > ./docs/.vuepress/version.txt
npm run docs:build
echo "" > ./docs/.vuepress/dist/.nojekyll
- name: Setup Pages
Expand Down

0 comments on commit 10232a1

Please sign in to comment.