forked from chainflag/eth-faucet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d4417e
commit d1bf819
Showing
7 changed files
with
381 additions
and
91 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy to Azure Staging | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Download artifact | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
workflow: build.yml | ||
name: build-artifact | ||
path: ./deploy | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Deploy to Azure App Service | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: auroria-test-faucet # Replace with your Azure App Service name | ||
slot-name: staging | ||
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE_STAGING }} # Azure publish profile secret | ||
package: ./deploy # Path to the downloaded artifact |
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,25 +1,31 @@ | ||
package server | ||
|
||
type Config struct { | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
hcaptchaSiteKey string | ||
hcaptchaSecret string | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
hcaptchaSiteKey string | ||
hcaptchaSecret string | ||
discordClientId string | ||
discordClientSecret string | ||
discordRedirectUrl string | ||
} | ||
|
||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount int, hcaptchaSiteKey, hcaptchaSecret string) *Config { | ||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount int, hcaptchaSiteKey, hcaptchaSecret, discordClientId, discordClientSecret, discordRedirectUrl string) *Config { | ||
return &Config{ | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
hcaptchaSiteKey: hcaptchaSiteKey, | ||
hcaptchaSecret: hcaptchaSecret, | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
hcaptchaSiteKey: hcaptchaSiteKey, | ||
hcaptchaSecret: hcaptchaSecret, | ||
discordClientId: discordClientId, | ||
discordClientSecret: discordClientSecret, | ||
discordRedirectUrl: discordRedirectUrl, | ||
} | ||
} |
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.