This repository has been archived by the owner on May 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #383 from alexander-heimbuch/fix/github-releases
Fix/GitHub releases
- Loading branch information
Showing
16 changed files
with
330 additions
and
166 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#!/bin/sh | ||
echo "Publishing to Github Releases" | ||
publish-release --token $GITHUB_TOKEN --owner $CIRCLE_PROJECT_USERNAME --repo $CIRCLE_PROJECT_REPONAME --tag $CIRCLE_TAG --assets dist/* --name "Podlove Web Player" --notes " " | ||
|
||
ASSETS_DIRECTORY=dist/*.* | ||
|
||
FILES=$(ls -m $ASSETS_DIRECTORY | sed -e "s/, /,/g") | ||
|
||
# echo "Publishing to Github Releases" | ||
publish-release --token $GITHUB_TOKEN --owner $CIRCLE_PROJECT_USERNAME --repo $CIRCLE_PROJECT_REPONAME --tag $CIRCLE_TAG --assets $FILES --name "Podlove Web Player" --notes " " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,9 @@ | |
background: $background-color; | ||
} | ||
} | ||
&.labeled { | ||
font-size: 0.8em; | ||
} | ||
} | ||
</style> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
<template> | ||
<div class="share"> | ||
<ShareLinkComponent class="seperator" v-if="reference.origin"></ShareLinkComponent> | ||
<ShareEmbedComponent v-if="reference.config && reference.share"></ShareEmbedComponent> | ||
<ShareEmbedComponent class="seperator" v-if="reference.config && reference.share"></ShareEmbedComponent> | ||
<ShareDownloadComponent v-if="share.download.files.length > 0"></ShareDownloadComponent> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ShareLinkComponent from './ShareLink.vue' | ||
import ShareEmbedComponent from './ShareEmbed.vue' | ||
import ShareDownloadComponent from './ShareDownload.vue' | ||
export default { | ||
data() { | ||
return { | ||
share: this.$select('share'), | ||
reference: this.$select('reference'), | ||
playtime: this.$select('playtime'), | ||
duration: this.$select('duration'), | ||
theme: this.$select('theme') | ||
} | ||
}, | ||
components: { | ||
ShareLinkComponent, | ||
ShareEmbedComponent | ||
ShareEmbedComponent, | ||
ShareDownloadComponent | ||
} | ||
} | ||
</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<template> | ||
<div class="input-element"> | ||
<h4 class="title">{{ $t('SHARE.DOWNLOAD') }}</h4> | ||
<div class="input-row input-group"> | ||
<input type="text" class="input-text" disabled :value="activeAudioFile(share.download.files)" /> | ||
<a class="button input-button truncate" | ||
:href="activeAudioFile(share.download.files)" | ||
:style="buttonStyle(theme)"> | ||
{{ $t('SHARE.ACTIONS.DOWNLOAD') }} | ||
</a> | ||
</div> | ||
<div class="input-row" v-if="share.download.files.length > 1"> | ||
<div></div> | ||
<div> | ||
<label class="input-label">{{ $t('SHARE.LABELS.TYPE') }}</label> | ||
<select class="input-select" v-on:change="switchAudioType"> | ||
<option v-for="option in share.download.files" v-bind:value="option.file" :selected="activeAudioType(share.download.files) === option.type"> | ||
{{ option.type }} | ||
</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { compose, find, get } from 'lodash/fp' | ||
import store from 'store' | ||
import ButtonComponent from 'shared/Button.vue' | ||
import { addQueryParameter } from 'utils/url' | ||
const buttonStyle = (theme) => ({ | ||
color: theme.tabs.button.text, | ||
background: theme.tabs.button.background | ||
}) | ||
const activeAudioFile = compose(get('file'), find({active: true})) | ||
const activeAudioType = compose(get('type'), find({active: true})) | ||
const switchAudioType = (input) => { | ||
store.dispatch(store.actions.switchDownloadFile(input.target.value)) | ||
} | ||
export default { | ||
data() { | ||
return { | ||
share: this.$select('share'), | ||
theme: this.$select('theme') | ||
} | ||
}, | ||
methods: { | ||
buttonStyle, | ||
activeAudioFile, | ||
activeAudioType, | ||
switchAudioType | ||
}, | ||
components: { | ||
ButtonComponent | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import 'inputs'; | ||
</style> |
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
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
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
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
Oops, something went wrong.