Skip to content

Commit

Permalink
feat: replace release action
Browse files Browse the repository at this point in the history
  • Loading branch information
nenkoru committed Aug 9, 2024
1 parent 66ec207 commit b9f88c8
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,23 @@ jobs:
python convert_to_amnezia_format.py # Replace with your actual script name
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: amnezia_split_tunnel_hostnames
path: split_tunneling_amnezia.json

- name: Get current date and time
id: date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: elgohr/Github-Release-Action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: '${{ env.CURRENT_DATE }}' # Adjust as needed
release_name: 'Release ${{ env.CURRENT_DATE }}' # Adjust as needed
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./split_tunneling_amnezia.json
asset_name: split_tunneling_amnezia.json
asset_content_type: application/json
name: 'Release ${{ env.CURRENT_DATE }}'
artifacts: "./split_tunneling_amnezia.json"
makeLatest: true
replacesArtifacts: true
allowUpdates: true

0 comments on commit b9f88c8

Please sign in to comment.