Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM authored Apr 20, 2024
1 parent 0387881 commit 1a0b159
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,27 @@ jobs:
- name: Build assets with npm
run: npm run build

# Copy .env.example to .env
- name: Copy .env.example to .env
run: cp .env.example .env
# Tar project contents with version
- name: Tar project contents with version
run: |
version=${{ steps.increment_version.outputs.new_version }}
tar -czf "cssbans_${version}.tar.gz" .
zip -r "cssbans_${version}.zip" .
# Create tag for new version
- name: Create tag for new version
run: git tag -a "v${{ steps.increment_version.outputs.new_version }}" -m "Release v${{ steps.increment_version.outputs.new_version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Upload tar file to release
# Upload zip file to release
- name: Upload tar file to release
uses: actions/upload-artifact@v2
with:
name: project
path: cssbans_*.tar.gz
path: cssbans_*.zip

# Download previous release artifacts
- name: Download previous release artifacts
Expand Down

0 comments on commit 1a0b159

Please sign in to comment.