Offer to copy non-HTTP links to the clipboard instead of trying to open them #1296
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# documentation: https://github.com/deltachat/sysadmin/tree/master/download.delta.chat | |
name: Delete Preview Deliverables | |
on: | |
pull_request: | |
types: [closed] | |
paths-ignore: | |
- 'docs/**' # only trigger build if a file outside of /docs was changed | |
jobs: | |
delete: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Pullrequest ID | |
id: getid | |
run: | | |
export PULLREQUEST_ID=$(jq .number < $GITHUB_EVENT_PATH) | |
echo ::set-output name=prid::$PULLREQUEST_ID | |
- name: Renaming | |
run: | | |
mkdir preview | |
# create empty file to copy it over the outdated deliverable on download.delta.chat | |
echo "This preview build is outdated and has been removed." > empty | |
cp empty preview/deltachat-desktop-${{ steps.getid.outputs.prid }}.AppImage | |
cp empty preview/deltachat-desktop-${{ steps.getid.outputs.prid }}.portable.exe | |
cp empty preview/deltachat-desktop-${{ steps.getid.outputs.prid }}.dmg | |
cp empty preview/deltachat-desktop-mas-${{ steps.getid.outputs.prid }}.zip | |
cd .. | |
- name: Replace builds with dummy files | |
uses: horochx/[email protected] | |
with: | |
user: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
host: "download.delta.chat" | |
port: 22 | |
local: "preview/*" | |
remote: "/var/www/html/download/desktop/preview/" |